Changeset 1239 in ntrip for trunk/BNC/RTCM3/RTCM3Decoder.cpp


Ignore:
Timestamp:
Nov 26, 2008, 1:18:08 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1218 r1239  
    220220      if (_Parser.MessageSize >= _Parser.NeedBytes) {
    221221
    222         // RTCMv3 message types
    223         // --------------------
    224         for (int kk = 0; kk < _Parser.typeSize; kk++) {
    225           _typeList.push_back(_Parser.typeList[kk]);
    226         }
    227         _Parser.typeSize = 0;
    228 
    229         // RTCMv3 antenna descriptor
    230         // -------------------------
    231         for (int kk = 0; kk < _Parser.antSize; kk++) {
    232           _antType.push_back(_Parser.antType[kk]);
    233         }
    234         _Parser.antSize = 0;
    235 
    236         // RTCMv3 antenna XYZ
    237         // ------------------
    238         for (int kk = 0; kk < _Parser.antSize5; kk += 3) {
    239           _antList5.push_back(_Parser.antList5[kk + 0]);
    240           _antList5.push_back(_Parser.antList5[kk + 1]);
    241           _antList5.push_back(_Parser.antList5[kk + 2]);
    242         }
    243         _Parser.antSize5 = 0;
    244 
    245         // RTCMv3 antenna XYZ-H
    246         // --------------------
    247         for (int kk = 0; kk < _Parser.antSize6; kk += 4) {
    248           _antList6.push_back(_Parser.antList6[kk + 0]);
    249           _antList6.push_back(_Parser.antList6[kk + 1]);
    250           _antList6.push_back(_Parser.antList6[kk + 2]);
    251           _antList6.push_back(_Parser.antList6[kk + 3]);
    252         }
    253         _Parser.antSize6 = 0;
    254  
    255222        while(int rr = RTCM3Parser(&_Parser)) {
     223
     224          // RTCMv3 message types
     225          // --------------------
     226          _typeList.push_back(_Parser.blocktype);
     227
     228          // RTCMv3 antenna descriptor
     229          // -------------------------
     230          if(rr == 1007 || rr == 1008 || rr == 1033)
     231          {
     232            _antType.push_back(_Parser.antenna); /* correct ? */
     233          }
     234
     235          // RTCMv3 antenna XYZ
     236          // ------------------
     237          else if(rr == 1005)
     238          {
     239            _antList5.push_back(_Parser.antX);
     240            _antList5.push_back(_Parser.antY);
     241            _antList5.push_back(_Parser.antZ);
     242          }
     243
     244          // RTCMv3 antenna XYZ-H
     245          // --------------------
     246          else if(rr == 1006)
     247          {
     248            _antList6.push_back(_Parser.antX);
     249            _antList6.push_back(_Parser.antY);
     250            _antList6.push_back(_Parser.antZ);
     251            _antList6.push_back(_Parser.antH);
     252          }
    256253
    257254          // GNSS Observations
    258255          // -----------------
    259           if (rr == 1 || rr == 2) {
     256          else if (rr == 1 || rr == 2) {
    260257            decoded = true;
    261258   
Note: See TracChangeset for help on using the changeset viewer.