Changeset 1973 in ntrip
- Timestamp:
- Nov 17, 2009, 3:53:19 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1972 r1973 424 424 _latencyChecker->checkCorrLatency(_decoder->corrGPSEpochTime()); 425 425 426 emit newLatency(_staID, _latencyChecker->meanLatency()); 427 printf("%s: Mean latency in bncgetthread: %f ms\n", _staID.data(), _latencyChecker->meanLatency()); 426 emit newLatency(_staID, _latencyChecker->currentLatency()); 428 427 429 428 scanRTCM(); -
trunk/BNC/latencychecker.cpp
r1972 r1973 309 309 void latencyChecker::checkObsLatency(const QList<p_obs>& obsList) { 310 310 311 _meanLatency = 0.0;312 313 311 if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) { 314 312 if (_perfIntr > 0 ) { … … 332 330 .arg(_numGaps) 333 331 .toAscii(), true) ); 334 _meanLatency = _sumLat/_numLat*1000.;335 332 } else { 336 333 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs") … … 342 339 .arg(_numLat) 343 340 .toAscii(), true) ); 344 _meanLatency = _sumLat/_numLat*1000.;345 341 } 346 342 } … … 399 395 ////////////////////////////////////////////////////////////////////////////// 400 396 void latencyChecker::checkCorrLatency(int corrGPSEpochTime) { 401 402 _meanLatency = 0.0;403 397 404 398 if (corrGPSEpochTime < 0) { … … 436 430 .arg(_numGaps); 437 431 emit(newMessage(QString(_staID + late ).toAscii(), true) ); 438 _meanLatency = _sumLat/_numLat*1000.;439 432 } 440 433 else { … … 446 439 .arg(_numLat); 447 440 emit(newMessage(QString(_staID + late ).toAscii(), true) ); 448 _meanLatency = _sumLat/_numLat*1000.;449 441 } 450 442 } -
trunk/BNC/latencychecker.h
r1971 r1973 40 40 void checkObsLatency(const QList<p_obs>& obsList); 41 41 void checkCorrLatency(int corrGPSEpochTime); 42 double meanLatency() const {return _meanLatency;}42 double currentLatency() const {return _curLat;} 43 43 44 44 signals: … … 73 73 double _maxLat; 74 74 double _curLat; 75 double _meanLatency;76 75 QByteArray _staID; 77 76 QString _adviseScript;
Note:
See TracChangeset
for help on using the changeset viewer.