altos: Make telescience reliably log only when told to
authorKeith Packard <keithp@keithp.com>
Tue, 24 May 2011 21:10:01 +0000 (15:10 -0600)
committerKeith Packard <keithp@keithp.com>
Tue, 24 May 2011 21:10:01 +0000 (15:10 -0600)
commit0b54d9380f3a71b772747b1ed529d8fb89289b22
tree3a81f49d1b4ad3c5f7fb0023eb60a5e96ec37822
parentc5433affea877e73a98505f174c70374c0980987
altos: Make telescience reliably log only when told to

Use a pull-up on telescience and tri-state input on telemetrum at boot
time. Enable logging by pulling the TM output low and enabling as an
output, disable by pulling the TM output high and switching back to
input mode.

Also, ignore pin state changes for 5 seconds at boot to give things a
chance  to settle down.

Should work when both boards are powered up together.

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