summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-15 14:23:13 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-15 14:23:13 +0000
commit28badddbaab56f24ae871bedc8eb6ad06cf7177d (patch)
tree50fe1e53649fedb11965161895aea4d8e1d3e5fb /driver_ubx.c
parent04977d1fcbc33ae3f078f80423103d091c8029de (diff)
downloadgpsd-28badddbaab56f24ae871bedc8eb6ad06cf7177d.tar.gz
Begin using clear_dop to ensure that gpsd never reports stale DOP values.
All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 5d8adcdf..c98d5562 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -131,6 +131,7 @@ ubx_msg_nav_dop(struct gps_device_t *session, unsigned char *buf, size_t data_le
if (data_len != 18)
return 0;
+ clear_dop(&session->gpsdata.dop);
session->gpsdata.dop.gdop = (double)(getleuw(buf, 4)/100.0);
session->gpsdata.dop.pdop = (double)(getleuw(buf, 6)/100.0);
session->gpsdata.dop.tdop = (double)(getleuw(buf, 8)/100.0);