source: ntrip/trunk/BNC/src/PPP/pppRun.h@ 5883

Last change on this file since 5883 was 5883, checked in by mervart, 10 years ago
File size: 1.5 KB
Line 
1#ifndef PPPRUN_H
2#define PPPRUN_H
3
4#include <deque>
5#include <vector>
6#include <QtCore>
7
8#include "GPSDecoder.h"
9#include "pppOptions.h"
10#include "pppClient.h"
11
12class t_rnxObsFile;
13class t_rnxNavFile;
14class t_corrFile;
15
16namespace BNC_PPP {
17
18class t_pppRun : public QObject {
19 Q_OBJECT
20 public:
21 t_pppRun(const t_pppOptions* opt);
22 ~t_pppRun();
23
24 void processFiles();
25
26 signals:
27 void newMessage(QByteArray msg, bool showOnScreen);
28 void newPosition(bncTime time, QVector<double> xx);
29 void newNMEAstr(QByteArray str);
30
31 public slots:
32 void slotNewEphGPS(gpsephemeris gpseph);
33 void slotNewEphGlonass(glonassephemeris gloeph);
34 void slotNewEphGalileo(galileoephemeris galeph);
35 void slotNewCorrections(QStringList corrList);
36 void slotNewObs(QByteArray staID, QList<t_obs> obsList);
37
38 private:
39 class t_epoData {
40 public:
41 t_epoData() {}
42 ~t_epoData() {
43 for (unsigned ii = 0; ii < _satObs.size(); ii++) {
44 delete _satObs[ii];
45 }
46 }
47 bncTime _time;
48 std::vector<t_satObs*> _satObs;
49 };
50
51 QMutex _mutex;
52 const t_pppOptions* _opt;
53 t_pppClient* _pppClient;
54 std::deque<t_epoData*> _epoData;
55 int _lastOrbCorrIOD[t_prn::MAXPRN+1];
56 double _lastClkCorrValue[t_prn::MAXPRN+1];
57 bncTime _lastClkCorrTime;
58
59 t_rnxObsFile* _rnxObsFile;
60 t_rnxNavFile* _rnxNavFile;
61 t_corrFile* _corrFile;
62 int _maxSpeed;
63 int _speed;
64};
65
66}
67
68#endif
Note: See TracBrowser for help on using the repository browser.