Changeset 3528 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Dec 16, 2011, 5:23:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r3527 r3528 52 52 #include "bncapp.h" 53 53 #include "bncutils.h" 54 #include "bncrinex.h"55 54 #include "bnczerodecoder.h" 56 55 #include "bncnetqueryv0.h" … … 116 115 void bncGetThread::initialize() { 117 116 117 bncSettings settings; 118 118 119 setTerminationEnabled(true); 119 120 … … 127 128 _nextSleep = 0; 128 129 _PPPclient = 0; 129 130 bncSettings settings; 131 132 _miscMount = settings.value("miscMount").toString(); 133 134 // RINEX writer 135 // ------------ 136 _samplingRate = settings.value("rnxSampl").toInt(); 137 if ( settings.value("rnxPath").toString().isEmpty() ) { 138 _rnx = 0; 139 } 140 else { 141 _rnx = new bncRinex(_staID, _mountPoint, _latitude, _longitude, 142 _nmea, _ntripVersion); 143 } 130 _miscMount = settings.value("miscMount").toString(); 144 131 145 132 // Serial Port … … 364 351 delete it.value(); 365 352 } 366 delete _rnx;367 353 delete _rawFile; 368 354 delete _serialOutFile; … … 515 501 _prnLastEpo[prn] = obsTime; 516 502 517 // RINEX Output 518 // ------------ 519 if (_rnx) { 520 if (_samplingRate == 0 || iSec % _samplingRate == 0) { 521 _rnx->deepCopy(obs); 522 } 523 _rnx->dumpEpoch(_format, obsTime); 524 } 525 503 decoder()->dumpRinexEpoch(obs, _format); 504 526 505 // PPP Client 527 506 // ---------- … … 560 539 if (_query && _query->status() == bncNetQuery::running) { 561 540 _nextSleep = 0; 562 if (_rnx) { 563 _rnx->setReconnectFlag(false); 541 QMapIterator<QString, GPSDecoder*> itDec(_decoders); 542 while (itDec.hasNext()) { 543 itDec.next(); 544 GPSDecoder* decoder = itDec.value(); 545 decoder->setRinexReconnectFlag(false); 564 546 } 565 547 return success; … … 623 605 } 624 606 625 if (_rnx) { 626 _rnx->setReconnectFlag(true); 607 QMapIterator<QString, GPSDecoder*> itDec(_decoders); 608 while (itDec.hasNext()) { 609 itDec.next(); 610 GPSDecoder* decoder = itDec.value(); 611 decoder->setRinexReconnectFlag(false); 627 612 } 628 613
Note:
See TracChangeset
for help on using the changeset viewer.