altos: Run RDF beacon after apogee instead of waiting for landing
authorKeith Packard <keithp@keithp.com>
Wed, 30 Mar 2011 01:10:46 +0000 (18:10 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 30 Mar 2011 01:10:46 +0000 (18:10 -0700)
This provides tracking when GPS fails, or on TeleMini.

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

index 94fbf1784bf4cdbdc9885b5ad6054ac983fcafc6..c6cbbf7cbaeb3e26f64bf6069e427fe864f4a561 100644 (file)
@@ -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));
                                }