Changeset 11191 in ntrip for trunk/BNC/src/RTCM3


Ignore:
Timestamp:
Nov 10, 2026, 12:11:31 PM (3 days ago)
Author:
stuerze
Message:

Structured logging improved

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

Legend:

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

    r11185 r11191  
    139139    CurrentObs._time = CurrentObsTime;
    140140    CurrentObs._type = type;
     141    CurrentObs._size = int(_currMsg._size);
    141142
    142143    GETBITS(sv, 6)
    … …  
    734735          CurrentObs._time = CurrentObsTime;
    735736          CurrentObs._type = type;
     737          CurrentObs._size = int(_currMsg._size);
    736738          if (sys == 'S')
    737739            CurrentObs._prn.set(sys, 20 - 1 + RTCM3_MSM_NUMSAT - i);
    … …  
    965967    CurrentObs._time = CurrentObsTime;
    966968    CurrentObs._type = type;
     969    CurrentObs._size = int(_currMsg._size);
    967970
    968971    GETBITS(sv, 6)
    … …  
    13481351    GLOFreq[sv - 1] = 100 + eph._frq_num ; /* store frequency for other users (MSM) */
    13491352    _gloFrq = QString("%1 %2").arg(eph._prn.toString().c_str()).arg(eph._frq_num, 2, 'f', 0);
     1353    _gloFrqSource = _currMsg;
    13501354
    13511355    if (eph.validMdata()) {
    … …  
    20212025    memcpy(_antType.back()._descriptor, antenna, antnum);
    20222026    _antType.back()._descriptor[antnum] = 0;
     2027    _antType.back()._source = _currMsg;
    20232028  }
    20242029  SKIPBITS(8) /* antenna setup ID */
    … …  
    20412046      memcpy(_recType.back()._descriptor, receiver, recnum);
    20422047      _recType.back()._descriptor[recnum] = 0;
     2048      _recType.back()._source = _currMsg;
    20432049      if (recfirnum > -1 && recfirnum < 265) {
    20442050        memcpy(_recType.back()._firmware, rec_firmware, recfirnum);
    … …  
    20672073  _antList.push_back(t_antRefPoint());
    20682074  _antList.back()._type = t_antRefPoint::ARP;
     2075  _antList.back()._source = _currMsg;
    20692076  SKIPBITS(22)
    20702077  GETBITSSIGN(x, 38)
    … …  
    21272134  if (_gloBiasInfo != gloBiasInfo) {
    21282135    _gloBiasInfo.set(gloBiasInfo);
     2136    _gloBiasSource = _currMsg;
    21292137  }
    21302138  return true;
    … …  
    21532161  if (_serviceCrs.empty() ||
    21542162      (strncmp(_serviceCrs.back()._name, serviceCrs._name, servicecrsnum) != 0)) {
     2163    serviceCrs._msgType = _currMsg._type;
     2164    serviceCrs._msgSize = int(_currMsg._size);
    21552165    _serviceCrs.push_back(serviceCrs);
    21562166    GETFLOAT(_serviceCrs.back()._CE, 16, 1/100.0)
    … …  
    21842194  if (_rtcmCrs.empty() ||
    21852195      (strncmp(_rtcmCrs.back()._name, rtcmCrs._name, rtcmcrsnum) != 0)) {
     2196    rtcmCrs._msgType = _currMsg._type;
     2197    rtcmCrs._msgSize = int(_currMsg._size);
    21862198    _rtcmCrs.push_back(rtcmCrs);
    21872199
    … …  
    22482260    }
    22492261  }
     2262  helmertPar._msgType = _currMsg._type;
     2263  helmertPar._msgSize = int(_currMsg._size);
    22502264  _helmertPar.push_back(helmertPar);
    22512265
    … …  
    23002314      _typeList.back()._type = id;
    23012315      _typeList.back()._size = _BlockSize -6; /* header + crc */
     2316      _currMsg = _typeList.back();
    23022317
    23032318      /* SSR I+II data handled in another function, already pass the
  • trunk/BNC/src/RTCM3/crs.h

    r11124 r11191  
    1919    _coordinateEpoch = 0;
    2020    _CE              = 0;
     21    _msgType         = 0;
     22    _msgSize         = 0;
    2123  }
    2224  ~t_serviceCrs() {
    … …  
    4143    double   _coordinateEpoch;
    4244    double   _CE;
     45    int      _msgType;   // RTCM message of the information (RTCM scan)
     46    int      _msgSize;
    4347  };
    4448
    … …  
    4953      _anchor = 0;
    5054      _plateNumber = 0;
     55      _msgType = 0;
     56      _msgSize = 0;
    5157    }
    5258
    … …  
    7581    int              _plateNumber;      // 0.. unknown, 7.. Eurasia
    7682    QStringList      _databaseLinks;
     83    int              _msgType;          // RTCM message of the information (RTCM scan)
     84    int              _msgSize;
    7785  };
    7886
    … …  
    97105       _sc  = 0.0;
    98106       _scr = 0.0;
     107       _msgType = 0;
     108       _msgSize = 0;
    99109     }
    100110
    … …  
    190200     double         _sc;  // scale
    191201     double         _scr; // scale rate
     202     int            _msgType; // RTCM message of the information (RTCM scan)
     203     int            _msgSize;
    192204   };
    193205
Note: See TracChangeset for help on using the changeset viewer.