altos: Compute a 'trust' value for the barometer
authorKeith Packard <keithp@keithp.com>
Mon, 21 Mar 2011 23:51:23 +0000 (08:51 +0900)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Mar 2011 23:51:23 +0000 (08:51 +0900)
commitc14d6c5ace1d67bd948273ceb7eb6807b29c3806
treeef21aa1191398000eaddc49e03dfe1046c6c0bbd
parent7b009b2efe3af8722c358c304c2243652594e0d5
altos: Compute a 'trust' value for the barometer

Instead of making the baro use/don't-use decision binary, use a 'trust
value' which slowly migrates from baro+accel to accel-only mode. This
eliminates bumps in the data from a rapid shift.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_flight.c