- Timestamp:
- May 26, 2023, 10:02:24 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r10078 r10081 439 439 QMutexLocker locker(&_mutex); 440 440 const double outWait = 1.0 * _cmbSampl; 441 int currentWeek = 0; 442 double currentSec = 0.0; 443 currentGPSWeeks(currentWeek, currentSec); 444 bncTime currentTime(currentWeek, currentSec); 441 445 442 446 // Loop over all observations (possible different epochs) … … 453 457 // Check regarding current time 454 458 // ---------------------------- 455 int currentWeek = 0; 456 double currentSec = 0.0; 457 currentGPSWeeks(currentWeek, currentSec); 458 bncTime currentTime(currentWeek, currentSec); 459 if (newClk->_time >= currentTime) { 459 if ((newClk->_time >= currentTime) || // future time stamp 460 (currentTime - newClk->_time) > 60.0) { // very old data sets 460 461 delete newClk; 461 462 continue; … … 535 536 // Make sure the buffer does not grow beyond any limit 536 537 // --------------------------------------------------- 537 const unsigned MAX_EPODATA_SIZE = 20;538 const unsigned MAX_EPODATA_SIZE = 10; 538 539 if (_epoClkData.size() > MAX_EPODATA_SIZE) { 539 540 delete _epoClkData.front(); … … 553 554 bncTime epoTime = _epoClkData.front()->_time; 554 555 555 if ( fabs(epoTime - _lastClkCorrTime) > 60.0) {556 if ((currentTime - epoTime) > 60.0) { 556 557 delete _epoClkData.front(); 557 558 _epoClkData.pop_front(); … … 1499 1500 acName = AC->name; 1500 1501 out << "Provider ID changed: AC " << AC->name.toLatin1().data() << " " 1501 //<< _resTime.datestr().c_str() << " " << _resTime.timestr().c_str()1502 << _resTime.datestr().c_str() << " " << _resTime.timestr().c_str() 1502 1503 << "\n"; 1503 1504 break;
Note:
See TracChangeset
for help on using the changeset viewer.