Changeset 10081 in ntrip for trunk


Ignore:
Timestamp:
May 26, 2023, 10:02:24 AM (11 months ago)
Author:
stuerze
Message:

Combination: some checks regarding the corrections epoch time are dded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r10078 r10081  
    439439  QMutexLocker locker(&_mutex);
    440440  const double outWait = 1.0 * _cmbSampl;
     441  int    currentWeek = 0;
     442  double currentSec  = 0.0;
     443  currentGPSWeeks(currentWeek, currentSec);
     444  bncTime currentTime(currentWeek, currentSec);
    441445
    442446  // Loop over all observations (possible different epochs)
     
    453457    // Check regarding current time
    454458    // ----------------------------
    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
    460461      delete newClk;
    461462      continue;
     
    535536  // Make sure the buffer does not grow beyond any limit
    536537  // ---------------------------------------------------
    537   const unsigned MAX_EPODATA_SIZE = 20;
     538  const unsigned MAX_EPODATA_SIZE = 10;
    538539  if (_epoClkData.size() > MAX_EPODATA_SIZE) {
    539540    delete _epoClkData.front();
     
    553554    bncTime epoTime = _epoClkData.front()->_time;
    554555
    555     if (fabs(epoTime - _lastClkCorrTime) > 60.0) {
     556    if ((currentTime - epoTime) > 60.0) {
    556557      delete _epoClkData.front();
    557558      _epoClkData.pop_front();
     
    14991500      acName = AC->name;
    15001501      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()
    15021503          << "\n";
    15031504      break;
Note: See TracChangeset for help on using the changeset viewer.