Changeset 9025 in ntrip for trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Aug 25, 2020, 11:02:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r9011 r9025 1631 1631 * else. */ 1632 1632 if ((id >= 1057 && id <= 1068) || 1633 (id >= 1240 && id <= 1270) || 1634 (id == 4076)) { 1633 (id >= 1240 && id <= 1270) || 1634 (id == 4076)) { 1635 RTCM3coDecoder::e_type type = RTCM3coDecoder::e_type::RTCMssr; 1636 if (id == 4076) { 1637 type = RTCM3coDecoder::e_type::IGSssr; 1638 } 1635 1639 if (!_coDecoders.contains(_staID.toLatin1())) 1636 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID );1640 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type); 1637 1641 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()]; 1638 1642 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, … … 1719 1723 uint32_t RTCM3Decoder::CRC24(long size, const unsigned char *buf) { 1720 1724 uint32_t crc = 0; 1721 int i; 1722 1725 int ii; 1723 1726 while (size--) { 1724 1727 crc ^= (*buf++) << (16); 1725 for (i = 0; i < 8; i++) 1726 { 1728 for (ii = 0; ii < 8; ii++) { 1727 1729 crc <<= 1; 1728 1730 if (crc & 0x1000000)
Note:
See TracChangeset
for help on using the changeset viewer.