Changeset 1269 in ntrip


Ignore:
Timestamp:
Dec 2, 2008, 11:07:06 PM (15 years ago)
Author:
zdenek
Message:

* empty log message *

Location:
trunk/BNC/RTCM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r1268 r1269  
    158158  QList<int>       _typeList;  // RTCM   message types
    159159  QList<int>       _epochList; // Broadcast corrections
    160   QStringList      _antType;   // RTCMv3 antenna descriptor
     160  QStringList      _antType;   // RTCM  antenna descriptor
    161161  QList<t_antInfo> _antList;   // RTCM   antenna XYZ
    162162};
  • trunk/BNC/RTCM/RTCM2Decoder.cpp

    r1268 r1269  
    183183    }
    184184
     185    else if ( _PP.ID() == 23 ) {
     186      _msg23.extract(_PP);
     187    }
     188
     189    else if ( _PP.ID() == 24 ) {
     190      _msg24.extract(_PP);
     191    }
     192
    185193    // Output for RTCM scan
    186     if ( _PP.ID() == 3 ) {
    187       _antList.push_back(t_antInfo());
    188 
    189       this->getStaCrd(_antList.back().xx, _antList.back().yy, _antList.back().zz);
    190 
    191       _antList.back().type     = t_antInfo::APC;
    192       _antList.back().message  = _PP.ID();
     194    if     ( _PP.ID() == 3 ) {
     195      if ( _msg03.validMsg ) {
     196        _antList.push_back(t_antInfo());
     197       
     198        this->getStaCrd(_antList.back().xx, _antList.back().yy, _antList.back().zz);
     199       
     200        _antList.back().type     = t_antInfo::APC;
     201        _antList.back().message  = _PP.ID();
     202      }
     203    }
     204    else if ( _PP.ID() == 23 ) {
     205      if ( _msg23.validMsg ) {
     206        _antType.push_back(_msg23.antType.c_str());
     207      }
     208    }
     209    else if ( _PP.ID() == 24 ) {
     210      if ( _msg24.validMsg ) {
     211        _antList.push_back(t_antInfo());
     212       
     213        _antList.back().xx = _msg24.x;
     214        _antList.back().yy = _msg24.y;
     215        _antList.back().zz = _msg24.z;
     216       
     217        _antList.back().type     = t_antInfo::ARP;
     218        _antList.back().message  = _PP.ID();
     219      }
    193220    }
    194221  }
  • trunk/BNC/RTCM/RTCM2Decoder.h

    r1218 r1269  
    133133    rtcm2::RTCM2_03           _msg03;
    134134    rtcm2::RTCM2_22           _msg22;
     135    rtcm2::RTCM2_23           _msg23;
     136    rtcm2::RTCM2_24           _msg24;
    135137    rtcm2::RTCM2_2021         _msg2021;
    136138    std::map<std::string, t_ephList*> _ephList;
  • trunk/BNC/RTCM/RTCM2_2021.h

    r1050 r1269  
    6666class RTCM2_22 {
    6767 public:
    68   RTCM2_22() { }
     68  RTCM2_22() {
     69    validMsg = false;
     70  }
    6971 
    7072  void extract(const RTCM2packet& P);
Note: See TracChangeset for help on using the changeset viewer.