summaryrefslogtreecommitdiff
path: root/driver_navcom.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-22 20:17:48 -0700
committerGary E. Miller <gem@rellim.com>2019-03-22 20:17:48 -0700
commit259196e2ece002ff63a0da1831a90e6c0b74ea7f (patch)
tree02380d00b2932c39138fe27d9ef1f7bf61db6aa4 /driver_navcom.c
parent3d1b7493c58f80a93b9bbec33717fd3055841ae1 (diff)
downloadgpsd-259196e2ece002ff63a0da1831a90e6c0b74ea7f.tar.gz
Split epe into eph and sep.
Try to do it with forward and backward compatibility, which is challenging with current miscojson. Sometimes epe was used to 2D estimated erro. Sometimes for 3D error. So make it explicit eph is 2D, and sep is 3D.
Diffstat (limited to 'driver_navcom.c')
-rw-r--r--driver_navcom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_navcom.c b/driver_navcom.c
index 8706acc8..ed2152ae 100644
--- a/driver_navcom.c
+++ b/driver_navcom.c
@@ -898,8 +898,8 @@ static gps_mask_t handle_0xb5(struct gps_device_t *session)
double alt_sd = getled64(buf, 57);
double hrms = sqrt(pow(lat_sd, 2) + pow(lon_sd, 2));
#endif /* __UNUSED__ */
- session->newdata.epe = rms * 1.96;
- mask |= PERR_IS;
+ /* Navcom doc unclear, this is likely sep? */
+ session->newdata.sep = rms * 1.96;
#ifdef __UNUSED__
session->newdata.eph = hrms * 1.96;
session->newdata.epv = alt_sd * 1.96;
@@ -911,7 +911,7 @@ static gps_mask_t handle_0xb5(struct gps_device_t *session)
gpsd_log(&session->context->errout, LOG_PROG,
"Navcom: received packet type 0xb5 (Pseudorange Noise Statistics)\n");
gpsd_log(&session->context->errout, LOG_DATA,
- "Navcom: epe = %f\n", session->newdata.epe);
+ "Navcom: sep = %f\n", session->newdata.sep);
return mask;
} else {
/* Ignore this message block */