X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_flight.c;h=240b348a999e7207963d7274d38a01d0719490a7;hb=d96fd33aa8a220d547512eb43c88fc8f5651e39e;hp=88dc816d25578858aa2c3e8c672cb414b0eb418e;hpb=4254de22864de2ed7ae5928c6b8bfd9df1c8a3fb;p=fw%2Faltos diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index 88dc816d..240b348a 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -20,6 +20,10 @@ #include #endif +#if HAS_MPU6000 +#include +#endif + #ifndef HAS_ACCEL #error Please define HAS_ACCEL #endif @@ -194,8 +198,8 @@ ao_flight(void) #if HAS_GPS /* Record current GPS position by waking up GPS log tasks */ - ao_wakeup(&ao_gps_data); - ao_wakeup(&ao_gps_tracking_data); + ao_gps_new = AO_GPS_NEW_DATA | AO_GPS_NEW_TRACKING; + ao_wakeup(&ao_gps_new); #endif ao_wakeup(DATA_TO_XDATA(&ao_flight_state));