- Timestamp:
- Mar 28, 2007, 2:55:26 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnc.pro
r394 r423 14 14 HEADERS = bnchelp.html bncgetthread.h bncwindow.h bnctabledlg.h \ 15 15 bnccaster.h bncrinex.h bncapp.h bncutils.h bnchlpdlg.h \ 16 bncconst.h bnchtml.h bnctableitem.h 16 bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h \ 17 17 RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h \ 18 18 RTCM3/RTCM3Decoder.h RTCM3/rtcm3torinex.h \ … … 23 23 bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp \ 24 24 bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp \ 25 bnczerodecoder.cpp \ 25 26 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 26 27 RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex.cpp \ -
trunk/BNC/bncgetthread.cpp
r410 r423 52 52 #include "bncutils.h" 53 53 #include "bncrinex.h" 54 #include "bnczerodecoder.h" 54 55 55 56 #include "RTCM/RTCM2Decoder.h" … … 67 68 const QByteArray& nmea, int iMount) { 68 69 _decoder = 0; 69 _zeroDecoder= false;70 70 _mountPoint = mountPoint; 71 71 _staID = mountPoint.path().mid(1).toAscii(); … … 302 302 // Instantiate the filter 303 303 // ---------------------- 304 if (!_decoder && !_zeroDecoder) {304 if (!_decoder) { 305 305 if (_format.indexOf("RTCM_2") != -1) { 306 306 emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format")); … … 315 315 _decoder = new RTIGSDecoder(); 316 316 } 317 else if (_format.indexOf("SP3") != -1 ) {318 emit(newMessage("Get Data in SP3format"));319 _ zeroDecoder = true;317 else if (_format.indexOf("SP3") != -1 || _format.indexOf("ASCII") != -1) { 318 emit(newMessage("Get Data in ASCII format")); 319 _decoder = new bncZeroDecoder(); 320 320 } 321 321 else { … … 358 358 _socket->read(data, nBytes); 359 359 360 if (_zeroDecoder) {361 cout.write(data, nBytes);362 continue;363 }364 365 360 _decoder->Decode(data, nBytes); 366 361 delete [] data; 362 367 363 for (list<Observation*>::iterator it = _decoder->_obsList.begin(); 368 364 it != _decoder->_obsList.end(); it++) { -
trunk/BNC/bncgetthread.h
r408 r423 76 76 int _nextSleep; 77 77 int _iMount; 78 bool _zeroDecoder;79 78 int _samplingRate; 80 79 bncRinex* _rnx;
Note:
See TracChangeset
for help on using the changeset viewer.