- Timestamp:
- Dec 19, 2020, 10:51:15 PM (4 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncephuser.cpp
r9327 r9333 158 158 } 159 159 160 if ( (ephOld == 0) || 161 newEph->isNewerThan(ephOld) || 162 newCorrectedGpsEphSet(newEph) ) { 160 if ( (ephOld == 0) || newEph->isNewerThan(ephOld)) { 163 161 checkEphemeris(newEph, realTime); 164 162 eph->setCheckState(newEph->checkState()); … … 337 335 } 338 336 } 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 seconds351 // 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 GPS361 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 available372 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 75 75 private: 76 76 void checkEphemeris(t_eph* eph, bool realTime); 77 bool newCorrectedGpsEphSet(const t_eph* eph);78 77 QMutex _mutex; 79 78 static const unsigned _maxQueueSize = 6;
Note:
See TracChangeset
for help on using the changeset viewer.