Changeset 9036 in ntrip for branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Aug 27, 2020, 9:36:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r9008 r9036 489 489 490 490 bncTime CurrentObsTime; 491 if (sys == 'C') /* BDS */ {491 if (sys == 'C') /* BDS */ { 492 492 GETBITS(i, 30) 493 493 CurrentObsTime.setBDS(i); … … 793 793 frqObs->_codeValid = true; 794 794 } 795 796 795 if (cp[count] > -1.0 / (1 << 8)) { 797 796 frqObs->_phase = cp[count] * LIGHTSPEED / 1000.0 / cd.wl … … 802 801 frqObs->_slipCounter = ll[count]; 803 802 } 804 805 803 frqObs->_snr = cnr[count]; 806 804 frqObs->_snrValid = true; … … 812 810 frqObs->_codeValid = true; 813 811 } 814 815 812 if (cp[count] > -1.0 / (1 << 8)) { 816 813 frqObs->_phase = cp[count] * LIGHTSPEED / 1000.0 / cd.wl … … 821 818 frqObs->_slipCounter = ll[count]; 822 819 } 823 824 820 frqObs->_snr = cnr[count]; 825 821 frqObs->_snrValid = true; 826 827 822 if (dop[count] > -1.6384) { 828 823 frqObs->_doppler = -(dop[count] + rdop[numsat]) / cd.wl; … … 836 831 frqObs->_codeValid = true; 837 832 } 838 839 833 if (cp[count] > -1.0 / (1 << 8)) { 840 834 frqObs->_phase = cp[count] * LIGHTSPEED / 1000.0 / cd.wl … … 855 849 frqObs->_codeValid = true; 856 850 } 857 858 851 if (cp[count] > -1.0 / (1 << 8)) { 859 852 frqObs->_phase = cp[count] * LIGHTSPEED / 1000.0 / cd.wl … … 1624 1617 * else. */ 1625 1618 if ((id >= 1057 && id <= 1068) || 1626 (id >= 1240 && id <= 1270) || 1627 (id == 4076)) { 1628 if (!_coDecoders.contains(_staID.toAscii())) 1629 _coDecoders[_staID.toAscii()] = new RTCM3coDecoder(_staID); 1630 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toAscii()]; 1619 (id >= 1240 && id <= 1270) || 1620 (id == 4076)) { 1621 RTCM3coDecoder::e_type type = RTCM3coDecoder::e_type::RTCMssr; 1622 if (id == 4076) { 1623 type = RTCM3coDecoder::e_type::IGSssr; 1624 } 1625 if (!_coDecoders.contains(_staID.toLatin1())) 1626 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type); 1627 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()]; 1631 1628 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, 1632 1629 errmsg) == success) { … … 1716 1713 while (size--) { 1717 1714 crc ^= (*buf++) << (16); 1718 for (i = 0; i < 8; i++) 1719 { 1715 for (i = 0; i < 8; i++) { 1720 1716 crc <<= 1; 1721 1717 if (crc & 0x1000000)
Note:
See TracChangeset
for help on using the changeset viewer.