summaryrefslogtreecommitdiff
path: root/driver_rtcm3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-04-10 22:02:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-04-10 22:02:37 -0400
commit090692924a259d90db1374e35463adb19245b3d2 (patch)
treef530265091de1c3f4bbe06ae16c9100f555a3955 /driver_rtcm3.c
parent012eeaadd3d5512ebcd047df965bbcccaab839e0 (diff)
downloadgpsd-090692924a259d90db1374e35463adb19245b3d2.tar.gz
More small steps towards working RTCM3 decoding.
Diffstat (limited to 'driver_rtcm3.c')
-rw-r--r--driver_rtcm3.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/driver_rtcm3.c b/driver_rtcm3.c
index 627b8713..de2fe16a 100644
--- a/driver_rtcm3.c
+++ b/driver_rtcm3.c
@@ -22,7 +22,7 @@ passing RTCM corrections to a GPS, which normally should just be
passed an entire correction packet for processing by their internal
firmware.
-Decodes of the following types have been verified: 1005
+Decodes of the following types have been verified: 1029,
This file is Copyright (c) 2010 by the GPSD project
BSD terms apply: see the file COPYING in the distribution root for details.
@@ -192,13 +192,7 @@ void rtcm3_unpack( /*@out@*/ struct rtcm3_t *rtcm, char *buf)
#define R1005 rtcm->rtcmtypes.rtcm3_1005
R1005.station_id = (unsigned short)ugrab(12);
ugrab(6); /* reserved */
- temp = ugrab(3);
- if ((temp & 0x04)!=0)
- R1005.system = NAVSYSTEM_GPS;
- if ((temp & 0x02)!=0)
- R1005.system = NAVSYSTEM_GLONASS;
- if ((temp & 0x01)!=0)
- R1005.system = NAVSYSTEM_GALILEO;
+ R1005.system = ugrab(3);
R1005.reference_station = (bool)ugrab(1);
R1005.ecef_x = sgrab(38) * ANTENNA_POSITION_RESOLUTION;
R1005.single_receiver = ugrab(1);