summaryrefslogtreecommitdiff
path: root/driver_nmea0183.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_nmea0183.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_nmea0183.c')
-rw-r--r--driver_nmea0183.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index 0f41a1c8..9103f8a5 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -1410,16 +1410,16 @@ static gps_mask_t processPGRME(int c UNUSED, char *field[],
* (GPSD_CONFIDENCE / CEP50_SIGMA);
session->newdata.epv =
safe_atof(field[3]) * (GPSD_CONFIDENCE / CEP50_SIGMA);
- session->newdata.epe =
+ session->newdata.sep =
safe_atof(field[5]) * (GPSD_CONFIDENCE / CEP50_SIGMA);
mask = HERR_SET | VERR_SET | PERR_IS;
}
gpsd_log(&session->context->errout, LOG_DATA,
- "PGRME: epx=%.2f epy=%.2f epv=%.2f\n",
+ "PGRME: epx=%.2f epy=%.2f sep=%.2f\n",
session->newdata.epx,
session->newdata.epy,
- session->newdata.epv);
+ session->newdata.sep);
return mask;
}