Changeset 1970 in ntrip


Ignore:
Timestamp:
Nov 17, 2009, 12:23:24 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/latencychecker.cpp

    r1578 r1970  
    308308//////////////////////////////////////////////////////////////////////////////
    309309void latencyChecker::checkObsLatency(const QList<p_obs>& obsList) {
     310
     311  _meanLatency = 0.0;
    310312
    311313  if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) {
     
    340342                  .toAscii(), true) );
    341343              }
     344              _meanLatency = _sumLat/_numLat;
    342345            }
    343346            _meanDiff  = _diffSecGPS / _numLat;
     
    440443              emit(newMessage(QString(_staID + late ).toAscii(), true) );
    441444            }
     445            _meanLatency = _sumLat/_numLat;
    442446          }
    443447          _meanDiff = int(_diffSecGPS)/_numLat;
  • trunk/BNC/latencychecker.h

    r1969 r1970  
    4040  void checkObsLatency(const QList<p_obs>& obsList);
    4141  void checkCorrLatency(int corrGPSEpochTime);
    42   double meanLatency() const {return _numLat > 0 ? _sumLat / _numLat : 0.0;}
     42  double meanLatency() const {return _meanLatency}
    4343
    4444 signals:
     
    7373  double     _maxLat;
    7474  double     _curLat;
     75  double     _meanLatency;
    7576  QByteArray _staID;
    7677  QString    _adviseScript;
Note: See TracChangeset for help on using the changeset viewer.