Loosen tolerances for main->landed transition
authorKeith Packard <keithp@keithp.com>
Sun, 15 Nov 2009 06:17:24 +0000 (22:17 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 15 Nov 2009 06:17:24 +0000 (22:17 -0800)
commit1c654a9369294c9b8066c33f91161d8005b96680
tree10ec090548e98c5a18db47499f9889aafce83014
parent03092d1a72a9651711e22c58dca6d6aba5705c5e
Loosen tolerances for main->landed transition

Detecting that the rocket has landed is required for the system to
flush the eeprom log and re-enable the RDF beacon. This patch changes
the landed state entry requirements for the accelerometer to require
only that the accelerometer stay within a quarter of a g (down from
1/10g) and changes the testing interval from 20 seconds to 5
seconds.

The requirement that the barometric altitude be within 1000m of the
launch altitude and that the barometer change by no more than 0.05kPa
are unchanged.

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