Changeset 880 in ntrip
- Timestamp:
- May 6, 2008, 5:23:44 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r689 r880 44 44 45 45 #include "RTCM3Decoder.h" 46 #include "RTCM3coDecoder.h" 46 47 #include "bncconst.h" 47 48 #include "bncapp.h" … … 69 70 // Constructor 70 71 //////////////////////////////////////////////////////////////////////////// 71 RTCM3Decoder::RTCM3Decoder( ) : GPSDecoder() {72 RTCM3Decoder::RTCM3Decoder(const QString& fileName) : GPSDecoder() { 72 73 73 74 const int LEAPSECONDS = 14; /* only needed for approx. time */ … … 82 83 _Parser.GPSWeek = tim/(7*24*60*60); 83 84 _Parser.GPSTOW = tim%(7*24*60*60); 85 86 // Sub-Decoder for Clock and Orbit Corrections 87 // ------------------------------------------- 88 _coDecoder = new RTCM3coDecoder(fileName); 84 89 } 85 90 … … 87 92 //////////////////////////////////////////////////////////////////////////// 88 93 RTCM3Decoder::~RTCM3Decoder() { 94 delete _coDecoder; 89 95 } 90 96 … … 93 99 t_irc RTCM3Decoder::Decode(char* buffer, int bufLen) { 94 100 101 // Try to decode Clock and Orbit Corrections 102 // ----------------------------------------- 103 _coDecoder->Decode(buffer, bufLen); 104 105 // Remaining part decodes the Observations 106 // --------------------------------------- 95 107 bool decoded = false; 96 108 -
trunk/BNC/RTCM3/RTCM3Decoder.h
r649 r880 35 35 class ephSender : public QObject { 36 36 Q_OBJECT 37 public:37 public: 38 38 ephSender(); 39 39 friend class RTCM3Decoder; 40 signals:40 signals: 41 41 void newGPSEph(gpsephemeris* gpseph); 42 42 void newGlonassEph(glonassephemeris* glonasseph); 43 43 } ; 44 44 45 class RTCM3coDecoder; 46 45 47 class RTCM3Decoder : public GPSDecoder { 46 public:47 RTCM3Decoder( );48 public: 49 RTCM3Decoder(const QString& fileName); 48 50 virtual ~RTCM3Decoder(); 49 51 virtual t_irc Decode(char* buffer = 0, int bufLen = 0); 50 private:52 private: 51 53 struct RTCM3ParserData _Parser; 52 ephSender _ephSender; 54 ephSender _ephSender; 55 RTCM3coDecoder* _coDecoder; 53 56 } ; 54 57 -
trunk/BNC/bncgetthread.cpp
r875 r880 55 55 #include "RTCM/RTCM2Decoder.h" 56 56 #include "RTCM3/RTCM3Decoder.h" 57 #include "RTCM3/RTCM3coDecoder.h"58 57 #include "RTIGS/RTIGSDecoder.h" 59 58 … … 369 368 else if (_format.indexOf("RTCM_3") != -1) { 370 369 emit(newMessage("Get Data: " + _staID + " in RTCM 3.x format")); 371 _decoder = new RTCM3Decoder( );370 _decoder = new RTCM3Decoder(_staID); 372 371 } 373 372 else if (_format.indexOf("RTIGS") != -1) { 374 373 emit(newMessage("Get Data: " + _staID + " in RTIGS format")); 375 374 _decoder = new RTIGSDecoder(); 376 }377 else if (_format.indexOf("SP3") != -1) {378 emit(newMessage("Get Corrections: " + _staID + " in RTCM 3.x format"));379 _decoder = new RTCM3coDecoder(_staID);380 375 } 381 376 else if (_format.indexOf("ZERO") != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.