Changeset 9306 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 10, 2020, 3:39:36 PM (4 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r9285 r9306 1749 1749 if (!_coDecoders.contains(_staID.toLatin1())) { 1750 1750 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID); 1751 if (id == 4076) { 1752 _coDecoders[_staID.toLatin1()]->initSsrFormatType(RTCM3coDecoder::IGSssr); 1753 } 1754 else { 1755 _coDecoders[_staID.toLatin1()]->initSsrFormatType(RTCM3coDecoder::RTCMssr); 1756 } 1751 1757 } 1752 1758 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()]; 1753 if (id == 4076) {1754 coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr);1755 }1756 else {1757 coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr);1758 }1759 1759 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, errmsg) == success) { 1760 1760 decoded = true; -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r9050 r9306 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 _buffer.data(), _buffer.size(), &bytesused);183 _buffer.data(), _buffer.size(), &bytesused); 189 184 190 185 if (irc <= -30) { // not enough data - restore state and exit loop -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r9048 r9306 42 42 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 43 43 virtual int corrGPSEpochTime() const {return int(_lastTime.gpssec());} 44 virtual void setSsrFormatType(const e_type type) {_type = type;} 44 virtual void initSsrFormatType(const e_type type) { 45 _type = type; 46 if (_type == RTCMssr) { 47 _ssrCorr = new SsrCorrRtcm(); 48 } 49 else { 50 _ssrCorr = new SsrCorrIgs(); 51 } 52 } 45 53 46 54 signals:
Note:
See TracChangeset
for help on using the changeset viewer.