altos: Ignore ejection bumps when doing boost re-detect
authorKeith Packard <keithp@keithp.com>
Sat, 8 Oct 2011 17:51:05 +0000 (11:51 -0600)
committerKeith Packard <keithp@keithp.com>
Sat, 8 Oct 2011 17:59:34 +0000 (11:59 -0600)
commit6a7363b3ba99310bd44c9b66f6f5159e46762be4
tree39c91e56a006614e039961417466c12c1c1ab041
parent82604193ed0c522c1fba0072b504fe88b027f1ee
altos: Ignore ejection bumps when doing boost re-detect

An ejection charge looks an awful lot like an extra (really small)
motor burn. Ignore them by averaging the acceleration during
fast/coast using a /64 exponential decay filter.

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