altos: Start radio a fixed time after boost
authorKeith Packard <keithp@keithp.com>
Thu, 19 Jul 2012 20:42:30 +0000 (13:42 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Jul 2012 20:42:30 +0000 (13:42 -0700)
Keeps the radio quiet while inside the ULA airframe

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

index 52ac94891adebd99f915cf97a20e95ddf171a18c..5a1b3d1d75ccfee1a72e6b2dc1a04553be26445a 100644 (file)
@@ -283,6 +283,12 @@ ao_telemetry(void)
        while (!ao_flight_number)
                ao_sleep(&ao_flight_number);
 
+#if RADIO_DELAY_AFTER_BOOST
+       while (ao_flight_state < ao_flight_boost)
+               ao_sleep(&ao_flight_state);
+       ao_delay(AO_SEC_TO_TICKS(RADIO_DELAY_AFTER_BOOST));
+#endif
+
        telemetry.generic.serial = ao_serial_number;
        for (;;) {
                while (ao_telemetry_interval == 0)