altos: Complain about sensor self-test errors only in idle mode
authorKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:08:11 +0000 (22:08 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:08:11 +0000 (22:08 -0800)
commit758acb92cccbe4b64a35a1883b42713738c90630
tree664fff57bc7872ab609b0f6ff5905c892c88af48
parentc8b27410e45cc3d80ad4b896bffe70e9aec5e3aa
altos: Complain about sensor self-test errors only in idle mode

When the accelerometer says to go into pad mode, don't look for other
sensor self test errors. Only look for sensor self test errors to
choose between idle and invalid mode. This will prevent minor sensor
self test errors from letting the rocket fly safely.

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