Log GPS data on pad after boost detect.
[fw/altos] / src / ao_flight.c
index e0fd97f2464b901a61649037e61a9848e46b819e..980c16be555f67ca389ff0982690689f894bd99c 100644 (file)
@@ -289,6 +289,10 @@ ao_flight(void)
                                /* disable RDF beacon */
                                ao_rdf_set(0);
 
+                               /* Record current GPS position by waking up GPS log tasks */
+                               ao_wakeup(&ao_gps_data);
+                               ao_wakeup(&ao_gps_tracking_data);
+
                                ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
                                break;
                        }