summaryrefslogtreecommitdiff
path: root/driver_navcom.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-25 17:06:20 -0700
committerGary E. Miller <gem@rellim.com>2018-09-25 17:06:20 -0700
commit754fc3def49d63be36f1e8fcff396657ed5f6c99 (patch)
treee327849e30451f7deb80c6fe1e4046d541e664a1 /driver_navcom.c
parent666fa40ddaf55c6a3e9d27f33377931bac8980a4 (diff)
downloadgpsd-754fc3def49d63be36f1e8fcff396657ed5f6c99.tar.gz
driver_navcom: note that ept seems incorrectly calculated
Diffstat (limited to 'driver_navcom.c')
-rw-r--r--driver_navcom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_navcom.c b/driver_navcom.c
index 5e35d92a..e4e2ecb3 100644
--- a/driver_navcom.c
+++ b/driver_navcom.c
@@ -453,13 +453,14 @@ static gps_mask_t handle_0xb1(struct gps_device_t *session)
hdop = getub(buf, 43);
vdop = getub(buf, 44);
tdop = getub(buf, 45);
- tfom = getub(buf, 46);
+ tfom = getub(buf, 46); /* tfom == 10 * TDOP */
/* Get two-sigma horizontal circular error estimate */
eph = fom / 100.0 * 1.96;
/* approximate epx and epy errors from it */
session->newdata.epx = session->newdata.epy = eph / sqrt(2);
- session->newdata.ept = tfom * 1.96 /*Two sigma */ ;
+ /* this next does not seem a correct way to get to seconds */
+ session->newdata.ept = tfom * 1.96; /* Two sigma */
if (gdop != DOP_UNDEFINED)
session->gpsdata.dop.gdop = gdop / 10.0;