altos: Improve TM v1.0 apogee estimate
authorKeith Packard <keithp@keithp.com>
Sun, 9 Oct 2011 04:19:52 +0000 (22:19 -0600)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Oct 2011 04:23:16 +0000 (22:23 -0600)
commitca036c5616c3e745c0b878ed90618d4ff710c0e5
treee695913d8b6ad4ae65ed3d22811fcda08fedffca
parent26d7eb7149da8c797d7e704d75f73af2d2aa52c2
altos: Improve TM v1.0 apogee estimate

v1.0 boards have noisy accelerometer data caused by interactions
between RF transmission and the accelerometer measurements; this noise
generates a negative bias in the accelerometer readings. The net
effect is that the estimated speed is lower than the actual speed,
causing early an apogee estimate.

By increasing the sigma value for accelerometer data, the kalman
filter 'trusts' the acceleration data less, putting more weight on the
barometer data. This causes the estimated time of apogee to be closer
to the correct value.

This reduces the response to changes in acceleration.

This new value is applied solely to TeleMetrum v1.0 boards. v1.1
boards correct for this error, and hence can use the correct sigma
value for the accelerometer.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_pins.h
src/test/Makefile
src/util/make-kalman