Changeset 10185 in ntrip


Ignore:
Timestamp:
Aug 28, 2023, 10:23:40 AM (10 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppRun.cpp

    r9942 r10185  
    278278  }
    279279
     280  int    currentWeek = 0;
     281  double currentSec  = 0.0;
     282  currentGPSWeeks(currentWeek, currentSec);
     283  bncTime currentTime(currentWeek, currentSec);
     284
    280285  // Loop over all observations (possible different epochs)
    281286  // -----------------------------------------------------
     
    284289    const t_satObs& oldObs = it.next();
    285290    t_satObs*       newObs = new t_satObs(oldObs);
     291
     292    // Check regarding current time
     293    // ----------------------------
     294    if ((newObs->_time >= currentTime) ||        // future time stamp
     295        (currentTime - newObs->_time) > 60.0) {  // very old data sets
     296      delete newObs;
     297      continue;
     298    }
    286299
    287300    // Find the corresponding data epoch or create a new one
     
    315328  // Make sure the buffer does not grow beyond any limit
    316329  // ---------------------------------------------------
    317   const unsigned MAX_EPODATA_SIZE = 120;
     330  const unsigned MAX_EPODATA_SIZE = 65;
    318331  if (_epoData.size() > MAX_EPODATA_SIZE) {
    319332    delete _epoData.front();
     
    338351        (_epoData.front()->_time - _lastClkCorrTime) < _opt->_corrWaitTime) {
    339352
    340       if (_opt->_corrWaitTime != 0 && (fabs(_epoData.front()->_time - _lastClkCorrTime) > 60.0)) {
     353      if (_opt->_corrWaitTime != 0 &&
     354          (fabs(_epoData.front()->_time - _lastClkCorrTime) > 60.0)) {
    341355        delete _epoData.front();
    342356        _epoData.pop_front();
Note: See TracChangeset for help on using the changeset viewer.