- Timestamp:
- Mar 26, 2010, 11:55:55 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r2386 r2387 65 65 // Constructor 66 66 //////////////////////////////////////////////////////////////////////////// 67 RTCM3Decoder::RTCM3Decoder(const QString& staID) : GPSDecoder() { 67 RTCM3Decoder::RTCM3Decoder(const QString& staID, bool inputFromFile) : 68 GPSDecoder() { 69 70 _staID = staID; 71 _inputFromFile = inputFromFile; 68 72 69 73 bncSettings settings; 70 74 _checkMountPoint = settings.value("miscMount").toString(); 71 _staID = staID;72 75 73 76 // Ensure, that the Decoder uses the "old" convention for the data structure for Rinex2. Perlt … … 118 121 if ( _coDecoder->Decode(buffer, bufLen, errmsg) == success ) { 119 122 decoded = true; 120 if ( _mode == unknown) {121 /////_mode = corrections;123 if (!_inputFromFile && _mode == unknown) { 124 _mode = corrections; 122 125 } 123 126 } … … 340 343 } 341 344 } 342 if ( _mode == unknown && decoded) {343 ////_mode = observations;345 if (!_inputFromFile && _mode == unknown && decoded) { 346 _mode = observations; 344 347 } 345 348 } -
trunk/BNC/RTCM3/RTCM3Decoder.h
r1807 r2387 41 41 Q_OBJECT 42 42 public: 43 RTCM3Decoder(const QString& fileName);43 RTCM3Decoder(const QString& staID, bool inputFromFile); 44 44 virtual ~RTCM3Decoder(); 45 45 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); … … 67 67 std::map<std::string, t_ephGPS> _ephList; 68 68 double _antXYZ[3]; 69 69 bool _inputFromFile; 70 70 }; 71 71 -
trunk/BNC/bncgetthread.cpp
r2386 r2387 307 307 _format.indexOf("RTCM 3") != -1 ) { 308 308 emit(newMessage(_staID + ": Get data in RTCM 3.x format", true)); 309 _decoder = new RTCM3Decoder(_staID); 309 bool inputFromFile = false; 310 if (_rawInpFile != 0) { 311 inputFromFile = true; 312 } 313 _decoder = new RTCM3Decoder(_staID, inputFromFile); 310 314 connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)), 311 315 this, SIGNAL(newMessage(QByteArray,bool)));
Note:
See TracChangeset
for help on using the changeset viewer.