summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-10-02 02:46:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-10-02 02:46:31 +0000
commit58717950a7882ba920aeb2044119237fb01f8085 (patch)
tree65c40626e4d470b67512d8a94fa8c9bea703648d /driver_ubx.c
parentee286538bb8476ed968615383f938c6c7719a5f3 (diff)
downloadgpsd-58717950a7882ba920aeb2044119237fb01f8085.tar.gz
My bright idea to use timestamp() to set skyview times backfired...
...making the regression tests nondeterministic. Oh well. Fixed. All drivers now use the LOG_DATA convention.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 4335b694..38de59af 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -149,7 +149,7 @@ ubx_msg_nav_dop(struct gps_device_t *session, unsigned char *buf, size_t data_le
session->gpsdata.dop.vdop = (double)(getleuw(buf, 10)/100.0);
session->gpsdata.dop.hdop = (double)(getleuw(buf, 12)/100.0);
gpsd_report(LOG_DATA, "NAVDOP: gdop=%.2f pdop=.2%f "
- "hdop=.2%f vdop=.2%f tdop=.2%f mask=DOP\n",
+ "hdop=.2%f vdop=.2%f tdop=.2%f mask={DOP}\n",
session->gpsdata.dop.gdop,
session->gpsdata.dop.hdop,
session->gpsdata.dop.vdop,
@@ -182,7 +182,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf, size_t dat
t = gpstime_to_unix((int)session->driver.ubx.gps_week, tow/1000.0) - session->context->leap_seconds;
session->gpsdata.fix.time = t;
- gpsd_report(LOG_DATA, "TIMEGPS: time=%.2f mask=TIME\n",
+ gpsd_report(LOG_DATA, "TIMEGPS: time=%.2f mask={TIME}\n",
session->gpsdata.fix.time);
return TIME_SET;
}
@@ -202,7 +202,7 @@ ubx_msg_nav_svinfo(struct gps_device_t *session, unsigned char *buf, size_t data
#if 0
// Alas, this sentence doesn't supply GPS week
tow = getleul(buf, 0);
- session->gpsdata.skyview_time = gpstime_to_unix(gps_week,week, tow)
+ session->gpsdata.skyview_time = gpstime_to_unix(gps_week, tow)
- session->context->leap_seconds;
#endif
/*@ +charint @*/
@@ -231,11 +231,11 @@ ubx_msg_nav_svinfo(struct gps_device_t *session, unsigned char *buf, size_t data
/*@ +predboolothers */
j++;
}
- session->gpsdata.skyview_time = timestamp();
+ session->gpsdata.skyview_time = NAN;
session->gpsdata.satellites_visible = (int)st;
session->gpsdata.satellites_used = (int)nsv;
gpsd_report(LOG_DATA,
- "SVINFO: visible=%d used=%d mask=SATELLITE|USED\n",
+ "SVINFO: visible=%d used=%d mask={SATELLITE|USED}\n",
session->gpsdata.satellites_visible,
session->gpsdata.satellites_used);
return SATELLITE_SET | USED_SET;