Changeset 10330 in ntrip for trunk/BNC/src/bncutils.cpp


Ignore:
Timestamp:
Feb 13, 2024, 11:51:53 AM (3 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/bncutils.cpp

    r10091 r10330  
    265265//
    266266////////////////////////////////////////////////////////////////////////////
    267 bool outDatedBcep(const t_eph *eph) {
     267bool outDatedBcep(const t_eph *eph, bncTime tt) {
    268268  bncTime   toc = eph->TOC();
    269   QDateTime now = currentDateAndTimeGPS();
    270   bncTime currentTime(now.toString(Qt::ISODate).toStdString());
    271   double dt = currentTime - toc;
     269  double dt = tt -toc;
    272270
    273271  // update interval: 2h, data sets are valid for 4 hours
     
    280278  }
    281279  // updated every 30 minutes + 5 min
    282   else if (eph->type() == t_eph::GLONASS && (dt >  3900.0 || dt < -2100.0)) {
     280  else if (eph->type() == t_eph::GLONASS && (dt >  2100.0 || dt < -2100.0)) {
    283281    return true;
    284282  }
Note: See TracChangeset for help on using the changeset viewer.