summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-22 18:48:10 -0700
committerGary E. Miller <gem@rellim.com>2019-04-22 18:48:10 -0700
commitae36a7a1d946305bf403f1c534dc3d187bdad1ce (patch)
treeadb4c6f18fbc7585a71122dfde8084168ed5e6d9 /gpsd.h
parent93ded56dc03d4e59c6659967fc363912a0d278cb (diff)
downloadgpsd-ae36a7a1d946305bf403f1c534dc3d187bdad1ce.tar.gz
gpsd.h: add ubx.iTOW and ubx.last_iTOW. No functional changes.
These will be used for u-blox cycle detection. iTOW will change even if the GPS has not determeined UTC yet. fTOW adjusts the extact time of the fix, but is not to be used in cycle checking.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd.h b/gpsd.h
index 68b8e3e6..33d13860 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -712,6 +712,9 @@ struct gps_device_t {
unsigned int last_msgid; /* last class/ID */
timestamp_t last_time; /* time of last_msgid */
unsigned int end_msgid; /* cycle ender class/ID */
+ /* iTOW, and last_iTOW, in ms, used for cycle end detect. */
+ int64_t iTOW;
+ int64_t last_iTOW;
} ubx;
#endif /* UBLOX_ENABLE */
#ifdef NAVCOM_ENABLE