Changeset 207 in ntrip for trunk/BNC/RTCM


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

* empty log message *

Location:
trunk/BNC/RTCM
Files:
6 deleted
3 edited

Legend:

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

    r35 r207  
    11// -*- C++ -*-
    22//
    3 // $Id: GPSDecoder.h,v 1.1.1.1 2006/01/11 09:34:31 mervart Exp $
     3// $Id: GPSDecoder.h,v 1.1.1.1 2006/05/30 11:05:27 mervart Exp $
    44// 2005/04/11: include 'int iPCode' into class 'GPSDecoder' (BKG)
    55#if !defined(__GPSDecoder_h__)
     
    1010
    1111using namespace std;
    12 
    13 
    14 #include "format.h"
    1512
    1613//
     
    7370    int   pCodeIndicator;  // 0 ... CA Code, 1 ... P Code
    7471    u_int cumuLossOfCont;  // 0 to 31
    75 
    76     // Operator to write ascii formatted members of Observation to an outstream
    77     friend ostream& operator<<(ostream& os, const Observation & o) {
    78         os <<format("%3d%3d",(int) o.StatID,(int) o.SVPRN)
    79            <<format(" %4d %10d",(int)o.GPSWeek, o.GPSWeeks)
    80            <<format("\t%15.3f\t%15.3f\t%15.3f\t%15.3f\t%15.3f\t%15.3f"
    81                     ,o.C1, o.P2, o.L1, o.L2, 0.1*o.SNR1, 0.1*o.SNR2)
    82            <<endl;
    83         return os;
    84     }
    8572} ;
    8673
  • 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 ---------------------------------------
  • trunk/BNC/RTCM/RTCM2.h

    r206 r207  
    3838#include <vector>
    3939
    40 // begin added by LM
     40// ---------------- begin added by LM --------------------------------------
    4141#include "GPSDecoder.h"
    4242class RTCM2 : public GPSDecoder {
    43 public:
    44   RTCM2();
    45   ~RTCM2();
    46   void Decode(char* buffer = 0, int bufLen = 0);
    47 private:
    48   string _buffer;
    49 } ;
    50 // end added by LM
     43  public:
     44    RTCM2();
     45    ~RTCM2();
     46    void Decode(char* buffer = 0, int bufLen = 0);
     47  private:
     48    string _buffer;
     49};
     50// ----------------- end added by LM ---------------------------------------
    5151
    5252//
Note: See TracChangeset for help on using the changeset viewer.