Changeset 9306 in ntrip for trunk


Ignore:
Timestamp:
Dec 10, 2020, 3:39:36 PM (3 years ago)
Author:
stuerze
Message:

bug fixed

Location:
trunk/BNC/src/RTCM3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3Decoder.cpp

    r9285 r9306  
    17491749        if (!_coDecoders.contains(_staID.toLatin1())) {
    17501750          _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          }
    17511757        }
    17521758        RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
    1753         if (id == 4076) {
    1754           coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr);
    1755         }
    1756         else {
    1757           coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr);
    1758         }
    17591759        if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, errmsg) == success) {
    17601760          decoded = true;
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r9050 r9306  
    179179
    180180    int bytesused = 0;
    181     if (_type == RTCMssr) {
    182       _ssrCorr = new SsrCorrRtcm();
    183     }
    184     else {
    185       _ssrCorr = new SsrCorrIgs();
    186     }
     181
    187182    GCOB_RETURN irc = _ssrCorr->GetSSR(&_clkOrb, &_codeBias, &_vTEC, &_phaseBias,
    188                              _buffer.data(), _buffer.size(), &bytesused);
     183                                       _buffer.data(), _buffer.size(), &bytesused);
    189184
    190185    if      (irc <= -30) { // not enough data - restore state and exit loop
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r9048 r9306  
    4242  virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
    4343  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  }
    4553
    4654 signals:
Note: See TracChangeset for help on using the changeset viewer.