summaryrefslogtreecommitdiff
path: root/driver_zodiac.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_zodiac.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_zodiac.c')
-rw-r--r--driver_zodiac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index 86319365..f7c45b99 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -188,7 +188,7 @@ static gps_mask_t handle1000(struct gps_device_t *session)
* The manual says these are 1-sigma. Device reports only eph, circular
* error; no harm in assigning it to both x and y components.
*/
- session->gpsdata.fix.epx = session->gpsdata.fix.epy = (int)getzlong(40) * 1e-2 * GPSD_CONFIDENCE;
+ session->gpsdata.fix.epx = session->gpsdata.fix.epy = (int)getzlong(40) * 1e-2 * (1/sqrt(2)) * GPSD_CONFIDENCE;
session->gpsdata.fix.epv = (int)getzlong(42) * 1e-2 * GPSD_CONFIDENCE;
session->gpsdata.fix.ept = (int)getzlong(44) * 1e-2 * GPSD_CONFIDENCE;
session->gpsdata.fix.eps = (int)getzword(46) * 1e-2 * GPSD_CONFIDENCE;