- Timestamp:
- Dec 10, 2020, 3:40:35 PM (4 years ago)
- Location:
- branches/BNC_2.12/src/RTCM3
- Files:
-
- 3 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++) { -
branches/BNC_2.12/src/RTCM3/RTCM3coDecoder.cpp
r9051 r9307 179 179 180 180 int bytesused = 0; 181 if (_type == RTCMssr) { 182 _ssrCorr = new SsrCorrRtcm(); 183 } 184 else { 185 _ssrCorr = new SsrCorrIgs(); 186 } 181 187 182 GCOB_RETURN irc = _ssrCorr->GetSSR(&_clkOrb, &_codeBias, &_vTEC, &_phaseBias, 188 183 _buffer.data(), _buffer.size(), &bytesused); -
branches/BNC_2.12/src/RTCM3/RTCM3coDecoder.h
r9049 r9307 41 41 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 42 42 virtual int corrGPSEpochTime() const {return int(_lastTime.gpssec());} 43 virtual void setSsrFormatType(const e_type type) {_type = type;} 43 virtual void initSsrFormatType(const e_type type) { 44 _type = type; 45 if (_type == RTCMssr) { 46 _ssrCorr = new SsrCorrRtcm(); 47 } 48 else { 49 _ssrCorr = new SsrCorrIgs(); 50 } 51 } 44 52 45 53 signals:
Note:
See TracChangeset
for help on using the changeset viewer.