summaryrefslogtreecommitdiff
path: root/src/drivers/ao_gps_skytraq.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-07 11:39:10 -0700
committerKeith Packard <keithp@keithp.com>2014-06-07 11:39:10 -0700
commitdb6003d34595fbd103d5b131912b6a797254f1c5 (patch)
tree5e9e2e620bcd6bcc745453c94308ca5786ae5f30 /src/drivers/ao_gps_skytraq.c
parent302842ccda46a0a3d58b60d5c7fc82e05f614b0b (diff)
altos: Write current flight state to GPS data from GPS drivers
This will be useful with TeleGPS which has no other packet containing flight state. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_gps_skytraq.c')
-rw-r--r--src/drivers/ao_gps_skytraq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/ao_gps_skytraq.c b/src/drivers/ao_gps_skytraq.c
index 944a37f9..d789974d 100644
--- a/src/drivers/ao_gps_skytraq.c
+++ b/src/drivers/ao_gps_skytraq.c
@@ -259,6 +259,9 @@ ao_nmea_gga(void)
ao_gps_next.minute = ao_gps_decimal(2);
ao_gps_next.second = ao_gps_decimal(2);
ao_gps_skip_field(); /* skip seconds fraction */
+#if HAS_FLIGHT || HAS_TRACKER
+ ao_gps_data.state = ao_flight_state;
+#endif
ao_gps_next.latitude = ao_gps_parse_pos(2);
if (ao_gps_parse_flag('N', 'S'))