diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-19 13:42:30 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-19 13:42:30 -0700 |
commit | 3f5fcda8481079b7784ef3facf264f4831c1f26c (patch) | |
tree | 8328d4b6d63dda89019b02f514adbb38a109410e | |
parent | a4678d7552c6981a20608394021f4f8d09dac619 (diff) |
altos: Start radio a fixed time after boost
Keeps the radio quiet while inside the ULA airframe
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/core/ao_telemetry.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c index 52ac9489..5a1b3d1d 100644 --- a/src/core/ao_telemetry.c +++ b/src/core/ao_telemetry.c @@ -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) |