Changeset 508 in ntrip
- Timestamp:
- Oct 14, 2007, 5:40:15 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r505 r508 63 63 // Constructor 64 64 //////////////////////////////////////////////////////////////////////////// 65 RTCM3Decoder::RTCM3Decoder( ) : GPSDecoder() {65 RTCM3Decoder::RTCM3Decoder(const QByteArray& staID) : GPSDecoder() { 66 66 67 67 const int LEAPSECONDS = 14; /* only needed for approx. time */ … … 80 80 _Parser2.GPSTOW = tim%(7*24*60*60); 81 81 82 _Parser2.headerfile = strdup("TEST_HEADERFILE");83 _Parser2.glonassephemeris = strdup("TEST_GLONASSEPHEMERIS");84 _Parser2.gpsephemeris = strdup("TEST_GPSEPHEMERIS");82 _Parser2.headerfile = 0; 83 _Parser2.glonassephemeris = 0; 84 _Parser2.gpsephemeris = (staID + ".EPH").data(); 85 85 _Parser2.rinex3 = 1; 86 86 } … … 89 89 //////////////////////////////////////////////////////////////////////////// 90 90 RTCM3Decoder::~RTCM3Decoder() { 91 if (_Parser2.glonassfile) { 92 fclose(_Parser2.glonassfile); 93 } 94 if (_Parser2.gpsfile) { 95 fclose(_Parser2.gpsfile); 96 } 91 97 } 92 98 … … 94 100 //////////////////////////////////////////////////////////////////////////// 95 101 void RTCM3Decoder::Decode(char* buffer, int bufLen) { 102 103 // Direct file output 104 // ------------------ 96 105 for (int ii = 0; ii < bufLen; ii++) { 97 98 // Direct file output99 // ------------------100 106 HandleByte(&_Parser2, (unsigned int) buffer[ii]); 107 if (_Parser2.glonassfile) { 108 fflush(_Parser2.glonassfile); 109 } 110 if (_Parser2.gpsfile) { 111 fflush(_Parser2.gpsfile); 112 } 113 } 114 115 // Fill the obs structure 116 // ---------------------- 117 for (int ii = 0; ii < bufLen; ii++) { 101 118 102 119 _Parser.Message[_Parser.MessageSize++] = buffer[ii]; -
trunk/BNC/RTCM3/RTCM3Decoder.h
r505 r508 26 26 #define RTCM3DECODER_H 27 27 28 #include <QtCore> 28 29 #include "../RTCM/GPSDecoder.h" 29 30 … … 34 35 class RTCM3Decoder : public GPSDecoder { 35 36 public: 36 RTCM3Decoder( );37 RTCM3Decoder(const QByteArray& staID); 37 38 ~RTCM3Decoder(); 38 39 void Decode(char* buffer = 0, int bufLen = 0); -
trunk/BNC/bncgetthread.cpp
r476 r508 333 333 else if (_format.indexOf("RTCM_3") != -1) { 334 334 emit(newMessage("Get Data: " + _staID + " in RTCM 3.0 format")); 335 _decoder = new RTCM3Decoder( );335 _decoder = new RTCM3Decoder(_staID); 336 336 } 337 337 else if (_format.indexOf("RTIGS") != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.