From 259196e2ece002ff63a0da1831a90e6c0b74ea7f Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 22 Mar 2019 20:17:48 -0700 Subject: 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. --- driver_nmea0183.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver_nmea0183.c') 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; } -- cgit v1.2.1