Changeset 10098 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jun 16, 2023, 10:59:27 PM (17 months ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
3 edited

Legend:

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

    r10096 r10098  
    454454    }
    455455
    456     // Check regarding current time
    457     // ----------------------------
    458     if ((newClk->_time >= currentTime) ||        // future time stamp
    459         (currentTime - newClk->_time) > 60.0) {  // very old data sets
    460       delete newClk;
    461       continue;
    462     }
    463 
    464456    // Check Modulo Time
    465457    // -----------------
     
    487479    }
    488480
     481    // Check regarding current time
     482    // ----------------------------
     483    if ((newClk->_time >= currentTime) ||        // future time stamp
     484        (currentTime - newClk->_time) > 120.0) {  // very old data sets
     485#ifdef BNC_DEBUG_CMB
     486      emit newMessage("bncComb: very old data sets: " + acName.toLatin1() + " " + newClk->_prn.toString().c_str() +
     487          QString(" %1 ").arg(newClk->_time.timestr().c_str()).toLatin1() + "vs. current time" +
     488          QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1(), true);
     489#endif
     490      delete newClk;
     491      continue;
     492    }
     493
     494
    489495    // Set the last time
    490496    // -----------------
     
    535541  // Make sure the buffer does not grow beyond any limit
    536542  // ---------------------------------------------------
    537   const unsigned MAX_EPODATA_SIZE = 10;
     543  const unsigned MAX_EPODATA_SIZE = 25;
    538544  if (_epoClkData.size() > MAX_EPODATA_SIZE) {
    539545    delete _epoClkData.front();
     
    553559    bncTime epoTime = _epoClkData.front()->_time;
    554560
    555     if ((currentTime - epoTime) > 60.0) {
     561    if ((currentTime - epoTime) > 120.0) {
    556562      delete _epoClkData.front();
    557563      _epoClkData.pop_front();
Note: See TracChangeset for help on using the changeset viewer.