Changeset 9333 in ntrip


Ignore:
Timestamp:
Dec 19, 2020, 10:51:15 PM (5 months ago)
Author:
stuerze
Message:

minor changes

Location:
branches/BNC_2.12/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncephuser.cpp

    r9327 r9333  
    158158  }
    159159
    160   if ( (ephOld == 0) ||
    161        newEph->isNewerThan(ephOld) ||
    162        newCorrectedGpsEphSet(newEph)  ) {
     160  if ( (ephOld == 0) || newEph->isNewerThan(ephOld)) {
    163161    checkEphemeris(newEph, realTime);
    164162    eph->setCheckState(newEph->checkState());
     
    337335  }
    338336}
    339 
    340 //
    341 ////////////////////////////////////////////////////////////////////////////
    342 bool bncEphUser::newCorrectedGpsEphSet(const t_eph* eph) {
    343 
    344   if (eph->prn().system() != 'G') {
    345     return false;
    346   }
    347 
    348   bool correctedGpsEphSet = false;
    349   if ((fmod(eph->TOC().daysec()+16.0, 7200) == 0.0)) {
    350     // sometimes corrected BRDC sets are sent with TOC values 16 seconds
    351     // before the nominal TOC (integer time)
    352     correctedGpsEphSet = true;
    353   } else {
    354     return false;
    355   }
    356 
    357   QString  prn  = QString(eph->prn().toInternalString().c_str());
    358   t_eph*   ephL = ephLast(prn);
    359   if (!ephL) {
    360     // first set is a corrected set for GPS
    361     if (correctedGpsEphSet) {
    362       return true;
    363     }
    364     else {
    365       return false;
    366     }
    367   }
    368   else {
    369     double dt = eph->TOC() - ephL->TOC();
    370     if (correctedGpsEphSet) {
    371       // set already available
    372       if (dt == 0.0) {
    373         return false;
    374       }
    375       else {
    376         return true;
    377       }
    378     }
    379   }
    380 
    381   return false;
    382 }
  • branches/BNC_2.12/src/bncephuser.h

    r9322 r9333  
    7575 private:
    7676  void checkEphemeris(t_eph* eph, bool realTime);
    77   bool newCorrectedGpsEphSet(const t_eph* eph);
    7877  QMutex                             _mutex;
    7978  static const unsigned              _maxQueueSize = 6;
Note: See TracChangeset for help on using the changeset viewer.