Ignore:
Timestamp:
Feb 13, 2024, 11:51:53 AM (8 months ago)
Author:
stuerze
Message:

another test is added in PPP and combination mode to check if stored ephemerides were outdated and/or not updated in between

File:
1 edited

Legend:

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

    r10311 r10330  
    638638////////////////////////////////////////////////////////////////////////////
    639639void bncComb::processEpoch(bncTime epoTime, const vector<t_clkCorr>& clkCorrVec) {
    640 
     640  QDateTime now = currentDateAndTimeGPS();
     641  bncTime   currentTime(now.toString(Qt::ISODate).toStdString());
    641642  for (unsigned ii = 0; ii < clkCorrVec.size(); ii++) {
    642643    const t_clkCorr& clkCorr = clkCorrVec[ii];
     
    698699      continue;
    699700    }
    700     else if (ephLast->checkState() == t_eph::bad ||
     701    else if (outDatedBcep(ephLast, currentTime)  ||
     702             ephLast->checkState() == t_eph::bad ||
    701703             ephLast->checkState() == t_eph::outdated ||
    702704             ephLast->checkState() == t_eph::unhealthy) {
     
    711713        _newCorr->_eph = ephLast;
    712714      }
    713       else if (ephPrev && ephPrev->checkState() == t_eph::ok &&
     715      else if (ephPrev &&
     716               !outDatedBcep(ephPrev, currentTime) &&  // if not updated in storage
     717               ephPrev->checkState() == t_eph::ok  &&  // received
    714718               ephPrev->IOD() == _newCorr->_iod) {
    715719        _newCorr->_eph = ephPrev;
Note: See TracChangeset for help on using the changeset viewer.