altos: Write current flight state to GPS data from GPS drivers
[fw/altos] / src / drivers / ao_gps_sirf.c
index d89435b9c635f46891ae62ca948a5378e4a7238a..344b7121446cc410dce3fc5a1e59f04a92fa4fa5 100644 (file)
@@ -413,6 +413,9 @@ ao_gps(void) __reentrant
                        ao_gps_data.hdop = ao_sirf_data.hdop;
                        ao_gps_data.climb_rate = ao_sirf_data.climb_rate;
                        ao_gps_data.flags |= AO_GPS_COURSE_VALID;
+#if HAS_FLIGHT || HAS_TRACKER
+                       ao_gps_data.state = ao_flight_state;
+#endif
 #if 0
                        if (ao_sirf_data.h_error > 6553500)
                                ao_gps_data.h_error = 65535;