Changeset 8854 in ntrip for branches/BNC_2.12/src/RTCM3
- Timestamp:
- Nov 20, 2019, 2:52:17 PM (5 years ago)
- Location:
- branches/BNC_2.12/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r8843 r8854 1029 1029 int i, week; 1030 1030 uint64_t numbits = 0, bitfield = 0; 1031 int fitIntervalFalg = 0; 1031 1032 1032 1033 data += 3; /* header */ … … 1080 1081 GETBITS(eph._health, 6) 1081 1082 GETBITS(eph._L2PFlag, 1) 1082 GETBITS(eph._fitInterval, 1) 1083 GETBITS(fitIntervalFalg, 1) 1084 if (fitIntervalFalg == 0) { 1085 eph._fitInterval = 4.0; 1086 } 1083 1087 eph._TOT = 0.9999e9; 1084 1088 … … 1185 1189 int i, week; 1186 1190 uint64_t numbits = 0, bitfield = 0; 1187 1191 int fitIntervalFalg = 0; 1192 1188 1193 data += 3; /* header */ 1189 1194 size -= 6; /* header + crc */ … … 1241 1246 GETFLOATSIGN(eph._TGD, 8, 1.0 / (double )(1 << 30) / (double )(1 << 1)) 1242 1247 GETBITS(eph._IODC, 10) 1243 GETBITS(eph._fitInterval, 1) 1248 GETBITS(fitIntervalFalg, 1) 1249 if (fitIntervalFalg == 0) { 1250 eph._fitInterval = 2.0; 1251 } 1244 1252 eph._TOT = 0.9999e9; 1245 1253 -
branches/BNC_2.12/src/RTCM3/ephEncoder.cpp
r8814 r8854 15 15 unsigned long long bitbuffer = 0; 16 16 int ura = indexFromAccuracy(eph._ura, eph.type()); 17 int L5Flag, SFlag ;17 int L5Flag, SFlag, fitIntervalFlag; 18 18 19 19 if (eph.type() == t_eph::QZSS) { … … 47 47 GPSADDBITSFLOAT(8, eph._TGD, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 48 48 GPSADDBITS(10, eph._IODC) 49 GPSADDBITS(1, eph._fitInterval) 49 (eph._fitInterval == 2.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1; 50 GPSADDBITS(1, fitIntervalFlag) 50 51 GPSADDBITS(3, 0) /* padding */ 51 52 } else if (eph.type() == t_eph::IRNSS) { … … 125 126 GPSADDBITS(6, eph._health) 126 127 GPSADDBITS(1, eph._L2PFlag) 127 GPSADDBITS(1, eph._fitInterval) 128 (eph._fitInterval == 4.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1; 129 GPSADDBITS(1, fitIntervalFlag) 128 130 } 129 131
Note:
See TracChangeset
for help on using the changeset viewer.