summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-29 18:10:46 -0700
committerKeith Packard <keithp@keithp.com>2011-03-29 18:10:46 -0700
commit011e37f27b3926a42c8c1a74e0f179bb48829ec7 (patch)
tree02cd384ba7ed0a52ad5c4b125b8952791845b644
parent08e6bbef2c3529dfd468ef221c526fc9f3ed5b81 (diff)
altos: Run RDF beacon after apogee instead of waiting for landing
This provides tracking when GPS fails, or on TeleMini. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/ao_flight.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ao_flight.c b/src/ao_flight.c
index 94fbf178..c6cbbf7c 100644
--- a/src/ao_flight.c
+++ b/src/ao_flight.c
@@ -234,6 +234,9 @@ ao_flight(void)
/* slow down the telemetry system */
ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_RECOVER);
+ /* Turn the RDF beacon back on */
+ ao_rdf_set(1);
+
/*
* Start recording min/max height
* to figure out when the rocket has landed
@@ -292,8 +295,6 @@ ao_flight(void)
/* turn off the ADC capture */
ao_timer_set_adc_interval(0);
- /* Enable RDF beacon */
- ao_rdf_set(1);
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
}