Changeset 8011 in ntrip for trunk/BNC/src/bncgetthread.cpp
- Timestamp:
- Aug 12, 2016, 5:25:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r7976 r8011 537 537 const t_satObs& obs = it.next(); 538 538 539 QString prn(obs._prn.toString().c_str());540 long iSec = long(floor(obs._time.gpssec()+0.5));541 long obsTime = obs._time.gpsw()*7*24*3600 + iSec;542 543 539 // Check observation epoch 544 540 // ----------------------- 545 541 if (!_rawFile) { 546 int week; 547 double sec; 548 currentGPSWeeks(week, sec); 549 long currTime = week * 7*24*3600 + long(sec); 550 const double maxDt = 600.0; 551 if (fabs(currTime - obsTime) > maxDt) { 552 emit( newMessage(_staID + ": Wrong observation epoch(s)", false) ); 542 bool wrongObservationEpoch = checkForWrongObsEpoch(obs._time); 543 if (wrongObservationEpoch) { 544 emit( newMessage(_staID + ": Wrong observation epoch(s)", false) ); 553 545 continue; 554 546 } … … 558 550 // ---------------------------------------------------- 559 551 if (!_rawFile) { 552 QString prn(obs._prn.toString().c_str()); 553 long iSec = long(floor(obs._time.gpssec()+0.5)); 554 long obsTime = obs._time.gpsw()*7*24*3600 + iSec; 560 555 QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn); 561 556 if (it != _prnLastEpo.end()) {
Note:
See TracChangeset
for help on using the changeset viewer.