summaryrefslogtreecommitdiff
path: root/driver_sirf.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_sirf.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_sirf.c')
-rw-r--r--driver_sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 1ecb8deb..3bf356d1 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -524,7 +524,7 @@ static gps_mask_t sirf_msg_geodetic(struct gps_device_t *session, unsigned char
mask |= LATLON_SET;
if ((eph = getbesl(buf, 50)*1e-2) > 0) {
- session->gpsdata.fix.epx = session->gpsdata.fix.epy = eph;
+ session->gpsdata.fix.epx = session->gpsdata.fix.epy = eph/sqrt(2);
mask |= HERR_SET;
}
if ((session->gpsdata.fix.epv = getbesl(buf, 54)*1e-2) > 0)