Changeset 207 in ntrip for trunk/BNC/RTCM/RTCM2.cpp


Ignore:
Timestamp:
Oct 6, 2006, 12:52:22 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/RTCM2.cpp

    r206 r207  
    10391039
    10401040}; // End of namespace rtcm2
     1041
     1042// ---------------- begin added by LM --------------------------------------
     1043
     1044// Constructor
     1045////////////////////////////////////////////////////////////////////////////
     1046RTCM2::RTCM2() {
     1047
     1048}
     1049
     1050// Destructor
     1051////////////////////////////////////////////////////////////////////////////
     1052RTCM2::~RTCM2() {
     1053
     1054}
     1055
     1056//
     1057////////////////////////////////////////////////////////////////////////////
     1058void RTCM2::Decode(char* buffer, int bufLen) {
     1059
     1060  rtcm2::RTCM2packet PP;
     1061  rtcm2::RTCM2_Obs   ObsBlock;
     1062 
     1063  _buffer.append(buffer, bufLen);
     1064
     1065  while(true) {
     1066    PP.getPacket(_buffer);
     1067    if (!PP.valid()) break;
     1068
     1069    if ( PP.ID()==18 || PP.ID()==19 ) {   
     1070      ObsBlock.extract(PP);
     1071      if (!ObsBlock.valid()) continue;
     1072       
     1073      for (int iSat=0;iSat<ObsBlock.nSat;iSat++) {
     1074        cout << iSat << " " << ObsBlock.resolvedPhase_L1(iSat) << endl;
     1075      }
     1076
     1077      ObsBlock.clear();
     1078    }
     1079  }
     1080}
     1081
     1082// ----------------- end added by LM ---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.