Changeset 207 in ntrip for trunk/BNC/RTCM
- Timestamp:
- Oct 6, 2006, 12:52:22 PM (18 years ago)
- Location:
- trunk/BNC/RTCM
- Files:
-
- 6 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/GPSDecoder.h
r35 r207 1 1 // -*- C++ -*- 2 2 // 3 // $Id: GPSDecoder.h,v 1.1.1.1 2006/0 1/11 09:34:31mervart Exp $3 // $Id: GPSDecoder.h,v 1.1.1.1 2006/05/30 11:05:27 mervart Exp $ 4 4 // 2005/04/11: include 'int iPCode' into class 'GPSDecoder' (BKG) 5 5 #if !defined(__GPSDecoder_h__) … … 10 10 11 11 using namespace std; 12 13 14 #include "format.h"15 12 16 13 // … … 73 70 int pCodeIndicator; // 0 ... CA Code, 1 ... P Code 74 71 u_int cumuLossOfCont; // 0 to 31 75 76 // Operator to write ascii formatted members of Observation to an outstream77 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 }85 72 } ; 86 73 -
trunk/BNC/RTCM/RTCM2.cpp
r206 r207 1039 1039 1040 1040 }; // End of namespace rtcm2 1041 1042 // ---------------- begin added by LM -------------------------------------- 1043 1044 // Constructor 1045 //////////////////////////////////////////////////////////////////////////// 1046 RTCM2::RTCM2() { 1047 1048 } 1049 1050 // Destructor 1051 //////////////////////////////////////////////////////////////////////////// 1052 RTCM2::~RTCM2() { 1053 1054 } 1055 1056 // 1057 //////////////////////////////////////////////////////////////////////////// 1058 void 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 38 38 #include <vector> 39 39 40 // begin added by LM40 // ---------------- begin added by LM -------------------------------------- 41 41 #include "GPSDecoder.h" 42 42 class 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 LM43 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 --------------------------------------- 51 51 52 52 //
Note:
See TracChangeset
for help on using the changeset viewer.