summaryrefslogtreecommitdiff
path: root/driver_ubx.h
diff options
context:
space:
mode:
authorClark Li <clark.li86@gmail.com>2017-09-17 04:02:14 +0000
committerEric S. Raymond <esr@thyrsus.com>2017-09-19 12:05:11 -0400
commit71a487d83346708549252b6d4b062b3aabe45480 (patch)
tree36b57a9b7c09f03e96ddfa4cf7c215172f713716 /driver_ubx.h
parent3d0da919c75a46cc6ed5a370c32351e710e33b1f (diff)
downloadgpsd-71a487d83346708549252b6d4b062b3aabe45480.tar.gz
Support UBX NAV-PVT
NAV-SOL has only been retained for backwards compatibility; users are recommended to use the UBX-NAV-PVT message in preference. A regression test case using ublox-neo-m8n is also added.
Diffstat (limited to 'driver_ubx.h')
-rw-r--r--driver_ubx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver_ubx.h b/driver_ubx.h
index c4e28fed..99ef9b98 100644
--- a/driver_ubx.h
+++ b/driver_ubx.h
@@ -122,4 +122,11 @@ typedef enum {
#define UBX_SIG_CDCRLK2 6
#define UBX_SIG_NAVMSG 7
+#define UBX_NAV_PVT_VALID_DATE 0x01
+#define UBX_NAV_PVT_VALID_TIME 0x02
+#define UBX_NAV_PVT_VALID_DATE_TIME (UBX_NAV_PVT_VALID_DATE | UBX_NAV_PVT_VALID_TIME)
+
+#define UBX_NAV_PVT_FLAG_GPS_FIX_OK 0x01
+#define UBX_NAV_PVT_FLAG_DGPS 0x02
+
#endif /* _GPSD_UBX_H_ */