Changeset 8673 in ntrip
- Timestamp:
- Apr 10, 2019, 3:40:43 PM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r8646 r8673 257 257 bncTime currTime(week, sec); 258 258 259 if (fabs(currTime - obsTime) > maxDt) { 259 if (((currTime - obsTime) < 0.0) || 260 (fabs(currTime - obsTime) > maxDt)) { 260 261 return true; 261 262 } -
trunk/BNC/src/latencychecker.cpp
r8374 r8673 327 327 const t_satObs& obs = it.next(); 328 328 bool wrongObservationEpoch = checkForWrongObsEpoch(obs._time); 329 if (wrongObservationEpoch) { 330 emit( newMessage(QString("%1: Wrong observation epoch from %3 ") 331 .arg(_staID.data()) 332 .arg(obs._prn.toString().data()) 333 .toAscii(), true) ); 334 } 329 335 l._newSec = static_cast<int>(nint(obs._time.gpssec()*10)); 330 336 if (l._newSec > l._oldSec && !wrongObservationEpoch) { … … 357 363 } 358 364 } 359 }360 l._meanDiff = l._diffSec / l._numLat;361 l.init();365 l._meanDiff = l._diffSec / l._numLat; 366 l.init(); 367 } 362 368 } 363 369 if (l._followSec) { 364 370 l._diffSec += l._newSec - l._oldSec; 365 if (l._meanDiff >0.) {371 if (l._meanDiff > 0.0) { 366 372 if (l._newSec - l._oldSec > 1.5 * l._meanDiff) { 367 373 l._numGaps += 1;
Note:
See TracChangeset
for help on using the changeset viewer.