source: ntrip/trunk/BNC/src/latencychecker.h@ 4720

Last change on this file since 4720 was 4278, checked in by mervart, 13 years ago
File size: 2.6 KB
RevLine 
[1558]1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25#ifndef LATENCYCHECKER_H
26#define LATENCYCHECKER_H
27
28#include <QDateTime>
29
30#include "RTCM/GPSDecoder.h"
31
32class latencyChecker : public QObject {
33Q_OBJECT
34
35 public:
36 latencyChecker(QByteArray staID);
37 ~latencyChecker();
[1568]38 void checkReconnect();
[1562]39 void checkOutage(bool decoded);
[2711]40 void checkObsLatency(const QList<t_obs>& obsList);
[1566]41 void checkCorrLatency(int corrGPSEpochTime);
[1973]42 double currentLatency() const {return _curLat;}
[1558]43
44 signals:
45 void newMessage(QByteArray msg, bool showOnScreen);
46
47 private:
48 void callScript(const char* comment);
49 int _inspSegm;
50 int _adviseFail;
51 int _adviseReco;
52 int _perfIntr;
53 int _numSucc;
54 int _secSucc;
55 int _secFail;
56 int _initPause;
57 int _currPause;
58 int _oldSecGPS;
59 int _newSecGPS;
60 int _numGaps;
61 int _diffSecGPS;
62 int _numLat;
63 bool _wrongEpoch;
[1568]64 bool _checkSeg;
[1558]65 bool _begCorrupt;
66 bool _endCorrupt;
67 bool _followSec;
68 double _maxDt;
69 double _sumLat;
70 double _sumLatQ;
71 double _meanDiff;
72 double _minLat;
73 double _maxLat;
74 double _curLat;
75 QByteArray _staID;
76 QString _adviseScript;
77 QString _checkMountPoint;
78 QString _begDateCor;
79 QString _begTimeCor;
80 QString _begDateOut;
81 QString _begTimeOut;
82 QString _endDateCor;
83 QString _endTimeCor;
84 QString _endDateOut;
85 QString _endTimeOut;
[1568]86 QDateTime _checkTime;
[1558]87 QDateTime _decodeSucc;
88 QDateTime _decodeFailure;
89 QDateTime _decodeStart;
90 QDateTime _decodeStop;
[1568]91 QDateTime _checkPause;
[1558]92};
93
94#endif
Note: See TracBrowser for help on using the repository browser.