summaryrefslogtreecommitdiff
path: root/driver_nmea0183.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-14 15:38:53 -0700
committerGary E. Miller <gem@rellim.com>2019-03-14 15:38:53 -0700
commit2204219f45d3dc0989f4af25937d5b86befaf602 (patch)
treef431aa6cdf1aa66845aaf5d2ca468cd72210c759 /driver_nmea0183.c
parent47374471294aa80ee2713432c472a9a3a9d9aae9 (diff)
downloadgpsd-2204219f45d3dc0989f4af25937d5b86befaf602.tar.gz
driver_nmea0183: Add STATUS_SIM. Update status in GPGGA.
status = 8 supposed to be simulator mode. Older Garmin seems to use it for something undocuemnted.
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r--driver_nmea0183.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index c65b9f08..182a37d8 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -698,20 +698,28 @@ static gps_mask_t processGGA(int c UNUSED, char *field[],
case 2: /* differential */
newstatus = STATUS_DGPS_FIX;
break;
- /* no 3 */
- case 4: /* fixed RTK */
+ case 3:
+ /* GPS PPS, fix valid, could be 2D, 3D, GNSSDR */
+ newstatus = STATUS_FIX;
+ break;
+ case 4: /* RTK integer */
newstatus = STATUS_RTK_FIX;
break;
- case 5: /* float RTK */
+ case 5: /* RTK float */
newstatus = STATUS_RTK_FLT;
break;
case 6:
/* dead reckoning, could be valid or invalid */
newstatus = STATUS_DR;
break;
+ case 7:
+ /* manual input, surveyed */
+ newstatus = STATUS_TIME;
+ break;
case 8:
- /* WTF? Garmin GPSMAP and Gecko sends an 8, but undocumented */
- newstatus = STATUS_FIX;
+ /* simulated mode */
+ /* Garmin GPSMAP and Gecko sends an 8, but undocumented */
+ newstatus = STATUS_SIM;
break;
default:
newstatus = -1;