Changeset 10200 in ntrip


Ignore:
Timestamp:
Sep 11, 2023, 1:18:34 PM (9 months ago)
Author:
stuerze
Message:

changes regarding clock combination

File:
1 edited

Legend:

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

    r10192 r10200  
    486486    // ----------------------------
    487487    if (BNC_CORE->mode() != t_bncCore::batchPostProcessing) {
    488       if ((newClk->_time >= currentTime) ||        // future time stamp
     488      if ((newClk->_time >= currentTime) ||       // future time stamp
    489489          (currentTime - newClk->_time) > 60.0) { // very old data sets
    490490  #ifdef BNC_DEBUG_CMB
    491         emit newMessage("bncComb: very old data sets: " + acName.toLatin1() + " " + newClk->_prn.toString().c_str() +
     491        emit newMessage("bncComb: future or very old data sets: " + acName.toLatin1() + " " + newClk->_prn.toString().c_str() +
    492492            QString(" %1 ").arg(newClk->_time.timestr().c_str()).toLatin1() + "vs. current time" +
    493493            QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1(), true);
     
    546546  // Make sure the buffer does not grow beyond any limit
    547547  // ---------------------------------------------------
    548   const unsigned MAX_EPODATA_SIZE = 12;
     548  const unsigned MAX_EPODATA_SIZE = 60.0 / _cmbSampl;
    549549  if (_epoClkData.size() > MAX_EPODATA_SIZE) {
    550550    delete _epoClkData.front();
     
    564564    bncTime epoTime = _epoClkData.front()->_time;
    565565
    566     if ((currentTime - epoTime) > 60.0) {
    567       delete _epoClkData.front();
    568       _epoClkData.pop_front();
    569       continue;
    570     }
    571 
     566    if (BNC_CORE->mode() != t_bncCore::batchPostProcessing) {
     567      if ((currentTime - epoTime) > 60.0) {
     568        delete _epoClkData.front();
     569        _epoClkData.pop_front();
     570        continue;
     571      }
     572    }
    572573    // Process the front epoch
    573574    // -----------------------
Note: See TracChangeset for help on using the changeset viewer.