Changeset 1973 in ntrip


Ignore:
Timestamp:
Nov 17, 2009, 3:53:19 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1972 r1973  
    424424      _latencyChecker->checkCorrLatency(_decoder->corrGPSEpochTime());
    425425
    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());
    428427
    429428      scanRTCM();           
  • trunk/BNC/latencychecker.cpp

    r1972 r1973  
    309309void latencyChecker::checkObsLatency(const QList<p_obs>& obsList) {
    310310
    311   _meanLatency = 0.0;
    312 
    313311  if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) {
    314312    if (_perfIntr > 0 ) {
     
    332330                  .arg(_numGaps)
    333331                  .toAscii(), true) );
    334                 _meanLatency = _sumLat/_numLat*1000.;
    335332              } else {
    336333                emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs")
     
    342339                  .arg(_numLat)
    343340                  .toAscii(), true) );
    344                 _meanLatency = _sumLat/_numLat*1000.;
    345341              }
    346342            }
     
    399395//////////////////////////////////////////////////////////////////////////////
    400396void latencyChecker::checkCorrLatency(int corrGPSEpochTime) {
    401 
    402   _meanLatency = 0.0;
    403397
    404398  if (corrGPSEpochTime < 0) {
     
    436430              .arg(_numGaps);
    437431              emit(newMessage(QString(_staID + late ).toAscii(), true) );
    438               _meanLatency = _sumLat/_numLat*1000.;
    439432            }
    440433            else {
     
    446439              .arg(_numLat);
    447440              emit(newMessage(QString(_staID + late ).toAscii(), true) );
    448               _meanLatency = _sumLat/_numLat*1000.;
    449441            }
    450442          }
  • trunk/BNC/latencychecker.h

    r1971 r1973  
    4040  void checkObsLatency(const QList<p_obs>& obsList);
    4141  void checkCorrLatency(int corrGPSEpochTime);
    42   double meanLatency() const {return _meanLatency;}
     42  double currentLatency() const {return _curLat;}
    4343
    4444 signals:
     
    7373  double     _maxLat;
    7474  double     _curLat;
    75   double     _meanLatency;
    7675  QByteArray _staID;
    7776  QString    _adviseScript;
Note: See TracChangeset for help on using the changeset viewer.