Changeset 9307 in ntrip for branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Dec 10, 2020, 3:40:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r9286 r9307 1732 1732 if (!_coDecoders.contains(_staID.toLatin1())) { 1733 1733 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID); 1734 if (id == 4076) { 1735 _coDecoders[_staID.toLatin1()]->initSsrFormatType(RTCM3coDecoder::IGSssr); 1736 } 1737 else { 1738 _coDecoders[_staID.toLatin1()]->initSsrFormatType(RTCM3coDecoder::RTCMssr); 1739 } 1734 1740 } 1735 1741 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()]; 1736 if (id == 4076) { 1737 coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr); 1738 } 1739 else { 1740 coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr); 1741 } 1742 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, 1743 errmsg) == success) { 1742 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, errmsg) == success) { 1744 1743 decoded = true; 1745 1744 } 1746 1745 } 1747 else if (id >= 1070 && id <= 1237) { /* MSM */1746 else if (id >= 1070 && id <= 1237) { /* MSM */ 1748 1747 if (DecodeRTCM3MSM(_Message, _BlockSize)) 1749 1748 decoded = true; … … 1828 1827 uint32_t crc = 0; 1829 1828 int ii; 1830 while (size--) {1829 while (size--) { 1831 1830 crc ^= (*buf++) << (16); 1832 1831 for (ii = 0; ii < 8; ii++) {
Note:
See TracChangeset
for help on using the changeset viewer.