summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-05 17:30:44 -0700
committerGary E. Miller <gem@rellim.com>2019-04-05 17:30:44 -0700
commit1047ab92040746ab9597ffcf57a2ced4aaffc07f (patch)
treecc742eef14a49cd8d86f5c3dc939fd56737ae810 /driver_ubx.c
parent05f38c3d68c5b61efd78086e8fe0bc6dd15fe793 (diff)
downloadgpsd-1047ab92040746ab9597ffcf57a2ced4aaffc07f.tar.gz
gps.h: Add qErr to gps_fix_t.
qErr, aka "sawtooth" correction, is the error in the PPS time.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 932d2680..4d396086 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -1135,6 +1135,12 @@ ubx_msg_tim_tp(struct gps_device_t *session, unsigned char *buf,
flags = buf[14];
refInfo = buf[15];
+ /* are we UTC, and no RAIM? */
+ if ((3 == (flags & 0x03)) &&
+ (8 != (flags & 0x0c))) {
+ /* good, get qErr */
+ session->newdata.qErr = qErr;
+ }
/* cast for 32 bit compatibility */
gpsd_log(&session->context->errout, LOG_DATA,
"TIM_TP: towMS %lu, towSubMS %lu, qErr %ld week %u\n"