Changeset 408 in ntrip for trunk/BNC/bncgetthread.cpp
- Timestamp:
- Feb 26, 2007, 6:15:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r406 r408 51 51 #include "bncapp.h" 52 52 #include "bncutils.h" 53 #include "bncrinex.h" 53 54 54 55 #include "RTCM/RTCM2Decoder.h" … … 100 101 _staID = _staID.left(_staID.length()-1) + QString("%1").arg(num).toAscii(); 101 102 } 103 104 // RINEX writer 105 // ------------ 106 _samplingRate = settings.value("rnxSampl").toInt(); 107 if ( settings.value("rnxPath").toString().isEmpty() ) { 108 _rnx = 0; 109 } 110 else { 111 _rnx = new bncRinex(_staID, mountPoint, format, latitude, longitude, nmea); 112 } 113 102 114 msleep(100); //sleep 0.1 sec 103 115 } … … 382 394 emit newObs(_staID, *it); 383 395 bool firstObs = (it == _decoder->_obsList.begin()); 384 _global_caster->newObs(_staID, _mountPoint, firstObs, *it, _format, _latitude, _longitude, _nmea); 396 _global_caster->newObs(_staID, firstObs, *it); 397 398 // RINEX Output 399 // ------------ 400 if (_rnx) { 401 long iSec = long(floor((*it)->GPSWeeks+0.5)); 402 long newTime = (*it)->GPSWeek * 7*24*3600 + iSec; 403 if (_samplingRate == 0 || iSec % _samplingRate == 0) { 404 _rnx->deepCopy(*it); 405 } 406 _rnx->dumpEpoch(newTime); 407 } 408 385 409 } 386 410 _decoder->_obsList.clear(); … … 411 435 //////////////////////////////////////////////////////////////////////////// 412 436 void bncGetThread::tryReconnect() { 413 _global_caster->reconnecting(_staID); 437 if (_rnx) { 438 _rnx->setReconnectFlag(true); 439 } 414 440 while (1) { 415 441 delete _socket; _socket = 0;
Note:
See TracChangeset
for help on using the changeset viewer.