altos: TM: Don't turn on packet slave mode until idle/invalid state
authorKeith Packard <keithp@keithp.com>
Wed, 28 Sep 2011 04:06:54 +0000 (21:06 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 7 Oct 2011 14:37:02 +0000 (08:37 -0600)
commit0d10e25766b96f5660e213115cf27b71ff164405
tree187adf89dd3fa33dcb2fd21af92ecd3f22728d80
parentfba1d605a627d03f9587ec060c45fb5d3e96aaeb
altos: TM: Don't turn on packet slave mode until idle/invalid state

Leave the packet link disabled until we've checked the
accelerometer. That way, we cannot accidentally get to idle mode when
the rocket is on the rail.

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