Changeset 8669 in ntrip for branches/BNC_2.12
- Timestamp:
- Apr 10, 2019, 3:30:46 PM (6 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncutils.cpp
r8645 r8669 256 256 currentGPSWeeks(week, sec); 257 257 bncTime currTime(week, sec); 258 259 if (fabs(currTime - obsTime) > maxDt) {258 if (((currTime - obsTime) < 0.0) || 259 (fabs(currTime - obsTime) > maxDt)) { 260 260 return true; 261 261 } -
branches/BNC_2.12/src/latencychecker.cpp
r8375 r8669 321 321 322 322 if (_miscIntr > 0 ) { 323 t_latency& l = _lObs; 323 t_latency& l = _lObs; 324 324 l._type = "Observations"; 325 325 QListIterator<t_satObs> it(obsList); … … 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) { 331 337 if (l._newSec % (_miscIntr * 10) < l._oldSec % (_miscIntr * 10)) { 332 333 338 if (l._numLat > 0) { 334 339 if (l._meanDiff > 0.0) { … … 358 363 } 359 364 } 360 }361 l._meanDiff = l._diffSec / l._numLat;362 l.init();365 l._meanDiff = l._diffSec / l._numLat; 366 l.init(); 367 } 363 368 } 364 369 if (l._followSec) { 365 370 l._diffSec += l._newSec - l._oldSec; 366 if (l._meanDiff >0.) {371 if (l._meanDiff > 0.0) { 367 372 if (l._newSec - l._oldSec > 1.5 * l._meanDiff) { 368 373 l._numGaps += 1; … … 486 491 487 492 // Compute the observations latency 488 // -------------------------------- 493 // -------------------------------- 489 494 int week; 490 495 double sec;
Note:
See TracChangeset
for help on using the changeset viewer.