Changeset 207 in ntrip
- Timestamp:
- Oct 6, 2006, 12:52:22 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 6 deleted
- 6 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 // -
trunk/BNC/bnc.pro
r199 r207 14 14 bnccaster.h bncrinex.h bncapp.h bncutils.h bnchlpdlg.h \ 15 15 bncconst.h bnchtml.h bnctableitem.h \ 16 RTCM/ format.h RTCM/GPSDecoder.h RTCM/m_data.h RTCM/RTCM.h\16 RTCM/GPSDecoder.h RTCM/RTCM2.h \ 17 17 RTCM3/rtcm3.h RTCM3/rtcm3torinex.h \ 18 18 RTIGS/rtigs.h RTIGS/cgps_transform.h RTIGS/rtacp.h \ … … 23 23 bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp \ 24 24 bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp \ 25 RTCM/ m_date.cpp RTCM/RTCM.cpp\25 RTCM/RTCM2.cpp \ 26 26 RTCM3/rtcm3.cpp RTCM3/rtcm3torinex.cpp \ 27 27 RTIGS/rtigs.cpp RTIGS/cgps_transform.cpp -
trunk/BNC/bnccaster.cpp
r191 r207 19 19 #include "bncgetthread.h" 20 20 #include "bncutils.h" 21 #include "RTCM/ RTCM.h"21 #include "RTCM/GPSDecoder.h" 22 22 23 23 // Constructor -
trunk/BNC/bncgetthread.cpp
r205 r207 23 23 #include "bnctabledlg.h" 24 24 25 #include "RTCM/RTCM .h"25 #include "RTCM/RTCM2.h" 26 26 #include "RTCM3/rtcm3.h" 27 27 #include "RTIGS/rtigs.h" … … 175 175 if (_format.indexOf("RTCM_2") != -1) { 176 176 emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format")); 177 _decoder = new RTCM ('A',true);177 _decoder = new RTCM2(); 178 178 } 179 179 else if (_format.indexOf("RTCM_3") != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.