altos: Calibrate IMU accelerometers too
authorKeith Packard <keithp@keithp.com>
Fri, 25 Oct 2013 11:34:16 +0000 (04:34 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 25 Oct 2013 11:34:16 +0000 (04:34 -0700)
commit351d53836e201834a2d89773a08ab7c2dab2b2f4
tree599b180bc18e690496091dd335d8fa7731400b86
parent08143a922fe27bc50a19924f46538f9476ab5fd1
altos: Calibrate IMU accelerometers too

Average the IMU accelerometer values pointing up and down so that we
have a zero-g offset for all three axes. This can then be used to
compute which direction the rocket is pointing while sitting on the pad.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h
src/core/ao_config.c
src/core/ao_sample.c
src/test/ao_flight_test.c