Rev | Line | |
---|
[5883] | 1 | #ifndef PPPRUN_H
|
---|
| 2 | #define PPPRUN_H
|
---|
[5860] | 3 |
|
---|
| 4 | #include <deque>
|
---|
| 5 | #include <vector>
|
---|
| 6 | #include <QtCore>
|
---|
| 7 |
|
---|
| 8 | #include "pppOptions.h"
|
---|
| 9 | #include "pppClient.h"
|
---|
| 10 |
|
---|
[5883] | 11 | class t_rnxObsFile;
|
---|
| 12 | class t_rnxNavFile;
|
---|
| 13 | class t_corrFile;
|
---|
[5984] | 14 | class bncoutf;
|
---|
[5883] | 15 |
|
---|
[5860] | 16 | namespace BNC_PPP {
|
---|
| 17 |
|
---|
[5883] | 18 | class t_pppRun : public QObject {
|
---|
[5860] | 19 | Q_OBJECT
|
---|
| 20 | public:
|
---|
[5883] | 21 | t_pppRun(const t_pppOptions* opt);
|
---|
| 22 | ~t_pppRun();
|
---|
[5860] | 23 |
|
---|
[5883] | 24 | void processFiles();
|
---|
| 25 |
|
---|
[5990] | 26 | static QString nmeaString(char strType, const t_output& output);
|
---|
| 27 |
|
---|
[5860] | 28 | signals:
|
---|
| 29 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
[5954] | 30 | void newPosition(QByteArray staID, bncTime time, QVector<double> xx);
|
---|
| 31 | void newNMEAstr(QByteArray staID, QByteArray str);
|
---|
[5940] | 32 | void progressRnxPPP(int);
|
---|
| 33 | void finishedRnxPPP();
|
---|
[5860] | 34 |
|
---|
| 35 | public slots:
|
---|
| 36 | void slotNewEphGPS(gpsephemeris gpseph);
|
---|
| 37 | void slotNewEphGlonass(glonassephemeris gloeph);
|
---|
| 38 | void slotNewEphGalileo(galileoephemeris galeph);
|
---|
| 39 | void slotNewCorrections(QStringList corrList);
|
---|
[6137] | 40 | void slotNewObs(QByteArray staID, QList<t_satObs> obsList);
|
---|
[5889] | 41 | void slotSetSpeed(int speed);
|
---|
[5973] | 42 | void slotSetStopFlag();
|
---|
[5860] | 43 |
|
---|
| 44 | private:
|
---|
| 45 | class t_epoData {
|
---|
| 46 | public:
|
---|
| 47 | t_epoData() {}
|
---|
| 48 | ~t_epoData() {
|
---|
| 49 | for (unsigned ii = 0; ii < _satObs.size(); ii++) {
|
---|
| 50 | delete _satObs[ii];
|
---|
| 51 | }
|
---|
| 52 | }
|
---|
| 53 | bncTime _time;
|
---|
| 54 | std::vector<t_satObs*> _satObs;
|
---|
| 55 | };
|
---|
| 56 |
|
---|
[5999] | 57 | bool waitForCorr(const bncTime& epoTime) const;
|
---|
| 58 |
|
---|
[5860] | 59 | QMutex _mutex;
|
---|
| 60 | const t_pppOptions* _opt;
|
---|
| 61 | t_pppClient* _pppClient;
|
---|
| 62 | std::deque<t_epoData*> _epoData;
|
---|
| 63 | int _lastOrbCorrIOD[t_prn::MAXPRN+1];
|
---|
| 64 | double _lastClkCorrValue[t_prn::MAXPRN+1];
|
---|
| 65 | bncTime _lastClkCorrTime;
|
---|
[5989] | 66 | t_rnxObsFile* _rnxObsFile;
|
---|
| 67 | t_rnxNavFile* _rnxNavFile;
|
---|
| 68 | t_corrFile* _corrFile;
|
---|
| 69 | int _speed;
|
---|
| 70 | bool _stopFlag;
|
---|
| 71 | bncoutf* _logFile;
|
---|
| 72 | bncoutf* _nmeaFile;
|
---|
[5860] | 73 | };
|
---|
| 74 |
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.