Ignore:
Timestamp:
Mar 9, 2017, 12:32:12 PM (7 years ago)
Author:
stuerze
Message:

the latency checker is now able to check ssr data streams with messages containing different update rates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/latencychecker.h

    r7421 r8083  
    3838  void checkOutage(bool decoded);
    3939  void checkObsLatency(const QList<t_satObs>& obsList);
    40   void checkCorrLatency(int corrGPSEpochTime);
    41   double currentLatency() const {return _curLat;}
     40  void checkCorrLatency(int corrGPSEpochTime, int type);
     41  double currentLatency() { return _curLat;}
     42  //QByteArray currentLatencyType() {return l._type;}
    4243
     44  class t_latency  {
     45   public:
     46    t_latency() {
     47      _oldSec     = 0;
     48      _newSec     = 0;
     49      _numGaps    = 0;
     50      _diffSec    = 0;
     51      _numLat     = 0;
     52      _sumLat     = 0.0;
     53      _sumLatQ    = 0.0;
     54      _meanDiff   = 0.0;
     55      _minLat     =  1000.0;
     56      _maxLat     = -1000.0;
     57      _curLat     = 0.0;
     58      _type       = "";
     59      _followSec  = false;
     60    }
     61    void init() {
     62      _diffSec = 0;
     63      _numGaps    = 0;
     64      _sumLat     = 0.0;
     65      _sumLatQ    = 0.0;
     66      _numLat     = 0;
     67      _minLat     =  1000.0;
     68      _maxLat     = -1000.0;
     69    };
     70    void print() {
     71      qDebug() << _type;
     72      qDebug() << "_oldSec: " << _oldSec;
     73      qDebug() << "_newSec: " << _newSec;
     74      qDebug() << "_numGaps: " << _numGaps;
     75      qDebug() << "_diffSec: " << _diffSec;
     76      qDebug() << "_numLat: " << _numLat;
     77      qDebug() << "_sumLat: " << _sumLat;
     78      qDebug() << "_sumLatQ: " << _sumLatQ;
     79      qDebug() << "_meanDiff: " << _meanDiff;
     80      qDebug() << "_minLat: " << _minLat;
     81      qDebug() << "_maxLat: " << _maxLat;
     82      qDebug() << "_curLat: " << _curLat;
     83      qDebug() << "_followSec" << _followSec;
     84    };
     85    int        _oldSec;
     86    int        _newSec;
     87    int        _numGaps;
     88    int        _diffSec;
     89    int        _numLat;
     90    double     _sumLat;
     91    double     _sumLatQ;
     92    double     _meanDiff;
     93    double     _minLat;
     94    double     _maxLat;
     95    double     _curLat;
     96    QByteArray _type;
     97    bool _followSec;
     98
     99  };
     100
     101  t_latency _lObs;
     102  t_latency _lOrb;
     103  t_latency _lClk;
     104  t_latency _lClkOrb;
     105  t_latency _lPb;
     106  t_latency _lCb;
     107  t_latency _lVtec;
     108  t_latency _lUra;
     109  t_latency _lHr;
     110  void setCurrentLatency(double lat) {
     111    _curLat = lat;
     112  }
     113  /*
     114  void setLatencyObjekt(t_latency& lat, QByteArray type) {
     115    qDebug() << "set " << type;
     116    l= lat;
     117    l._type = type;
     118    l.print();
     119  }
     120
     121  void getLatencyObjekt(t_latency& lat) {
     122    lat =l;
     123  }
     124
     125*/
    43126 signals:
    44127  void newMessage(QByteArray msg, bool showOnScreen);
     
    55138  int        _initPause;
    56139  int        _currPause;
    57   int        _oldSecGPS;
    58   int        _newSecGPS;
    59   int        _numGaps;
    60   int        _diffSecGPS;
    61   int        _numLat;
    62140  bool       _wrongEpoch;
    63141  bool       _checkSeg;
    64142  bool       _begCorrupt;
    65143  bool       _endCorrupt;
    66   bool       _followSec;
    67144  bool       _fromReconnect;
    68145  bool       _fromCorrupt;
    69   double     _maxDt;
    70   double     _sumLat;
    71   double     _sumLatQ;
    72   double     _meanDiff;
    73   double     _minLat;
    74   double     _maxLat;
    75   double     _curLat;
    76146  QByteArray _staID;
    77147  QString    _adviseScript;
     
    97167  QDateTime  _begDateTimeCorr;
    98168  QDateTime  _endDateTimeCorr;
     169  double     _curLat;
    99170};
    100171
Note: See TracChangeset for help on using the changeset viewer.