Changeset 9324 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 17, 2020, 10:19:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r9320 r9324 342 342 bool bncEphUser::newCorrectedGpsEphSet(const t_eph* eph) { 343 343 344 if (eph->prn().system() != 'G') { 345 return false; 346 } 347 344 348 bool correctedGpsEphSet = false; 345 bool newCorrectedGpsEphSet = false;346 347 if (eph->prn().system() != 'G') {348 return newCorrectedGpsEphSet;349 }350 351 349 if ((fmod(eph->TOC().daysec()+16.0, 7200) == 0.0)) { 352 350 // sometimes corrected BRDC sets are sent with TOC values 16 seconds … … 355 353 } 356 354 357 QString prn = QString(eph->prn().toInternalString().c_str()); 358 t_eph* ephL = ephLast(prn); 359 if (!ephL) { // first set for GPS Sat 360 return correctedGpsEphSet; 361 } 362 363 364 double dt = eph->TOC() - ephL->TOC(); 365 if (correctedGpsEphSet){ 366 if (dt == 0.0) { 367 newCorrectedGpsEphSet = false; 355 QString prn = QString(eph->prn().toInternalString().c_str()); 356 t_eph* ephL = ephLast(prn); 357 if (!ephL) { 358 if (correctedGpsEphSet) { // first set is a corrected set for GPS 359 return true; 368 360 } 369 361 else { 370 newCorrectedGpsEphSet = true; 371 } 372 } 373 return newCorrectedGpsEphSet; 374 } 362 return false; 363 } 364 } 365 else { 366 double dt = eph->TOC() - ephL->TOC(); 367 if (correctedGpsEphSet) { 368 if (dt == 0.0) { 369 return false; 370 } 371 else { 372 return true; 373 } 374 } 375 } 376 return false; 377 }
Note:
See TracChangeset
for help on using the changeset viewer.