diff options
author | Gary E. Miller <gem@rellim.com> | 2018-12-04 14:59:22 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-04 14:59:22 -0800 |
commit | 0dd4c269e818cb0cb554510bbf0dc4168d660b29 (patch) | |
tree | 6c0ac397f16db7969cb2c0735ffb3e022d9742c3 /driver_nmea0183.c | |
parent | 1467a240901544bf0fdb446f4cd4726a9346891f (diff) | |
download | gpsd-0dd4c269e818cb0cb554510bbf0dc4168d660b29.tar.gz |
nmea0183: Use the pdop from GGA.
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r-- | driver_nmea0183.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c index 4b31e8da..7f70cd8a 100644 --- a/driver_nmea0183.c +++ b/driver_nmea0183.c @@ -467,6 +467,10 @@ static gps_mask_t processGGA(int c UNUSED, char *field[], } do_lat_lon(&field[2], &session->newdata); mask |= LATLON_SET; + + if (field[8][0] != '\0') + session->gpsdata.dop.hdop = safe_atof(field[8]); + /* FIXME: satellites_visible is used as an accumulator in xxGSV * so if we set it here we break xxGSV * session->gpsdata.satellites_visible = atoi(field[7]); |