- Timestamp:
- Nov 20, 2019, 2:38:50 PM (5 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r8844 r8852 1021 1021 int i, week; 1022 1022 uint64_t numbits = 0, bitfield = 0; 1023 int fitIntervalFalg = 0; 1023 1024 1024 1025 data += 3; /* header */ … … 1071 1072 GETBITS(eph._health, 6) 1072 1073 GETBITS(eph._L2PFlag, 1) 1073 GETBITS(eph._fitInterval, 1) 1074 GETBITS(fitIntervalFalg, 1) 1075 if (fitIntervalFalg == 0) { 1076 eph._fitInterval = 4.0; 1077 } 1074 1078 eph._TOT = 0.9999e9; 1075 1079 … … 1177 1181 int i, week; 1178 1182 uint64_t numbits = 0, bitfield = 0; 1183 int fitIntervalFalg = 0; 1179 1184 1180 1185 data += 3; /* header */ … … 1232 1237 GETFLOATSIGN(eph._TGD, 8, 1.0 / (double )(1 << 30) / (double )(1 << 1)) 1233 1238 GETBITS(eph._IODC, 10) 1234 GETBITS(eph._fitInterval, 1) 1239 GETBITS(fitIntervalFalg, 1) 1240 if (fitIntervalFalg == 0) { 1241 eph._fitInterval = 2.0; 1242 } 1235 1243 eph._TOT = 0.9999e9; 1236 1244 -
trunk/BNC/src/RTCM3/ephEncoder.cpp
r8813 r8852 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) { … … 46 46 GPSADDBITS(6, eph._health) 47 47 GPSADDBITSFLOAT(8, eph._TGD, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 48 GPSADDBITS(10, eph._IODC)49 GPSADDBITS(1, eph._fitInterval)48 (eph._fitInterval == 2.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1; 49 GPSADDBITS(1, fitIntervalFlag) 50 50 GPSADDBITS(3, 0) /* padding */ 51 51 } else if (eph.type() == t_eph::IRNSS) { … … 125 125 GPSADDBITS(6, eph._health) 126 126 GPSADDBITS(1, eph._L2PFlag) 127 GPSADDBITS(1, eph._fitInterval) 127 (eph._fitInterval == 4.0) ? fitIntervalFlag = 0 : fitIntervalFlag = 1; 128 GPSADDBITS(1, fitIntervalFlag) 128 129 } 129 130
Note:
See TracChangeset
for help on using the changeset viewer.