summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-30 22:03:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-30 22:03:11 +0000
commit97b9548cff261e13a5b592d31add94631ff4dbc9 (patch)
treef46a1c984d841d3d2d8d83836d01db57d3e8ccf9 /driver_ubx.c
parentb9f18fea09961f5e7476130a67e4e89379e12571 (diff)
downloadgpsd-97b9548cff261e13a5b592d31add94631ff4dbc9.tar.gz
Fix computation of epx and epy from eph.
Factor of 1/sqrt(2) has to be applied (on the assumption that epx and epy are equal).
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 257c6de1..c5b808d2 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -91,7 +91,7 @@ ubx_msg_nav_sol(struct gps_device_t *session, unsigned char *buf, size_t data_le
evz = (double)(getlesl(buf, 36)/100.0);
ecef_to_wgs84fix(&session->gpsdata, epx, epy, epz, evx, evy, evz);
mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET;
- session->gpsdata.fix.epx = session->gpsdata.fix.epy = (double)(getlesl(buf, 24)/100.0);
+ session->gpsdata.fix.epx = session->gpsdata.fix.epy = (double)(getlesl(buf, 24)/100.0)/sqrt(2);
session->gpsdata.fix.eps = (double)(getlesl(buf, 40)/100.0);
/* Better to have a single point of truth about DOPs */
//session->gpsdata.dop.pdop = (double)(getleuw(buf, 44)/100.0);