Changeset 9773 in ntrip


Ignore:
Timestamp:
Jun 23, 2022, 2:57:52 PM (22 months ago)
Author:
stuerze
Message:

order of eph checks changed

File:
1 edited

Legend:

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

    r9767 r9773  
    191191  }
    192192
     193  // Check whether the epoch is too far away the current time
     194  // --------------------------------------------------------
     195  if (realTime) {
     196    if (outDatedBcep(eph)) {
     197      eph->setCheckState(t_eph::outdated);
     198      return;
     199    }
     200  }
     201
    193202  // Check health status
    194203  // -------------------
    195204  if (eph->isUnhealthy()) {
    196205    eph->setCheckState(t_eph::unhealthy);
    197     //return;
     206    return;
    198207  }
    199208
     
    213222    eph->setCheckState(t_eph::bad);
    214223    return;
    215   }
    216 
    217   // Check whether the epoch is too far away the current time
    218   // --------------------------------------------------------
    219   if (realTime) {
    220     if (outDatedBcep(eph)) {
    221       eph->setCheckState(t_eph::outdated);
    222       return;
    223     }
    224224  }
    225225
     
    306306}
    307307
    308 /*
    309 ////////////////////////////////////////////////////////////////////////////
    310 bool bncEphUser::newCorrectedGpsEphSet(const t_eph* eph) {
    311 
    312   if (eph->prn().system() != 'G') {
    313     return false;
    314   }
    315 
    316   bool correctedGpsEphSet = false;
    317   if ((fmod(eph->TOC().daysec()+16.0, 7200) == 0.0)) {
    318     // sometimes corrected BRDC sets are sent with TOC values 16 seconds
    319     // before the nominal TOC (integer time)
    320     correctedGpsEphSet = true;
    321   } else {
    322     return false;
    323   }
    324 
    325   QString  prn  = QString(eph->prn().toInternalString().c_str());
    326   t_eph*   ephL = ephLast(prn);
    327   if (!ephL) {
    328     // first set is a corrected set for GPS
    329     if (correctedGpsEphSet) {
    330       return true;
    331     }
    332     else {
    333       return false;
    334     }
    335   }
    336   else {
    337     double dt = eph->TOC() - ephL->TOC();
    338     if (correctedGpsEphSet) {
    339       // set already available
    340       if (dt == 0.0) {
    341         return false;
    342       }
    343       else {
    344         return true;
    345       }
    346     }
    347   }
    348 
    349   return false;
    350 }*/
Note: See TracChangeset for help on using the changeset viewer.