diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-12 14:30:28 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-12 14:30:28 -0400 |
commit | c61bbe33aed0c05ed9bb5a96d4b4951b95493207 (patch) | |
tree | 58f90d49bd1b9c94541214119ebf42aafb86108f /driver_rtcm3.c | |
parent | f566d74bbf2878366cde015d32b4d71ec4e17eb2 (diff) | |
download | gpsd-c61bbe33aed0c05ed9bb5a96d4b4951b95493207.tar.gz |
Fix up an RTCM3 field width.
Diffstat (limited to 'driver_rtcm3.c')
-rw-r--r-- | driver_rtcm3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_rtcm3.c b/driver_rtcm3.c index 7d10a35f..5e964d17 100644 --- a/driver_rtcm3.c +++ b/driver_rtcm3.c @@ -55,7 +55,7 @@ BSD terms apply: see the file COPYING in the distribution root for details. /* Other magic values */ -#define GPS_INVALID_PSEUDORANGE 0x80000 /* DF012 */ +#define GPS_INVALID_PSEUDORANGE 0x80000 /* DF012, DF018 */ #define GLONASS_INVALID_RANGEINCR 0x2000 /* DF047 */ /* Large case statements make GNU indent very confused */ @@ -180,7 +180,7 @@ void rtcm3_unpack( /*@out@*/ struct rtcm3_t *rtcm, char *buf) R1004.L1.ambiguity = (unsigned char)ugrab(8); R1004.L1.CNR = ugrab(8) * CARRIER_NOISE_RATIO_UNITS; R1004.L2.indicator = (unsigned char)ugrab(2); - GPS_PSEUDORANGE(R1004.L2, 24); + GPS_PSEUDORANGE(R1004.L2, 14); RANGEDIFF(R1004.L2, 20); R1004.L2.locktime = (unsigned char)sgrab(7); R1004.L2.ambiguity = (unsigned char)ugrab(8); |