Changeset 10692 in ntrip for trunk/BNC/src/RTCM


Ignore:
Timestamp:
Jul 8, 2025, 10:07:50 AM (7 months ago)
Author:
stuerze
Message:

RTCM message 1230 (on-change) and the size of each RTCM message is added in scanRTCM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/RTCM2Decoder.cpp

    r10688 r10692  
    118118    }
    119119
    120     // Store message number
     120    // Store _message number
    121121    _typeList.push_back(t_typeInfo());
    122     _typeList.back().type = _PP.ID();
     122    _typeList.back()._type = _PP.ID();
    123123    //_typeList.back().size = 0;
    124124
     
    210210        _antList.push_back(t_antRefPoint());
    211211
    212         this->getStaCrd(_antList.back().xx, _antList.back().yy, _antList.back().zz);
    213 
    214         _antList.back().type = t_antRefPoint::APC;
    215         _antList.back().message = _PP.ID();
     212        this->getStaCrd(_antList.back()._xx, _antList.back()._yy, _antList.back()._zz);
     213
     214        _antList.back()._type = t_antRefPoint::APC;
     215        _antList.back()._message = _PP.ID();
    216216      }
    217217    } else if (_PP.ID() == 23) {
     
    220220        int serlen = strlen(_msg23.antSN.c_str());
    221221        if ((antlen) &&
    222             (_antType.empty() || strncmp(_antType.back().descriptor, _msg23.antType.c_str(), antlen) != 0)) {
     222            (_antType.empty() || strncmp(_antType.back()._descriptor, _msg23.antType.c_str(), antlen) != 0)) {
    223223          _antType.push_back(t_antInfo());
    224           memcpy(_antType.back().descriptor, _msg23.antType.c_str(), antlen);
    225           _antType.back().descriptor[antlen] = 0;
     224          memcpy(_antType.back()._descriptor, _msg23.antType.c_str(), antlen);
     225          _antType.back()._descriptor[antlen] = 0;
    226226          if (serlen) {
    227             memcpy(_antType.back().serialnumber,  _msg23.antSN.c_str(), serlen);
    228             _antType.back().serialnumber[serlen] = 0;
     227            memcpy(_antType.back()._serialnumber,  _msg23.antSN.c_str(), serlen);
     228            _antType.back()._serialnumber[serlen] = 0;
    229229          }
    230230        }
     
    234234        _antList.push_back(t_antRefPoint());
    235235
    236         _antList.back().xx = _msg24.x;
    237         _antList.back().yy = _msg24.y;
    238         _antList.back().zz = _msg24.z;
    239 
    240         _antList.back().height_f = true;
    241         _antList.back().height = _msg24.h;
    242 
    243         _antList.back().type = t_antRefPoint::ARP;
    244         _antList.back().message = _PP.ID();
     236        _antList.back()._xx = _msg24.x;
     237        _antList.back()._yy = _msg24.y;
     238        _antList.back()._zz = _msg24.z;
     239
     240        _antList.back()._height_f = true;
     241        _antList.back()._height = _msg24.h;
     242
     243        _antList.back()._type = t_antRefPoint::ARP;
     244        _antList.back()._message = _PP.ID();
    245245      }
    246246    }
     
    265265  currentGPSWeeks(refWeek, refSecs);
    266266
    267   // Resolve receiver time of measurement (see RTCM 2.3, page 4-42, Message 18, Note 1)
     267  // Resolve receiver time of measurement (see RTCM 2.3, page 4-42, message 18, Note 1)
    268268  // ----------------------------------------------------------------------------------
    269269  double hoursec_est = _msg2021.hoursec();      // estimated time of measurement
Note: See TracChangeset for help on using the changeset viewer.