| Line | |
|---|
| 1 | #ifndef PPPRUNREALTIME_H
|
|---|
| 2 | #define PPPRUNREALTIME_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 |
|
|---|
| 12 | namespace BNC_PPP {
|
|---|
| 13 |
|
|---|
| 14 | class t_pppRunRealTime : public QObject {
|
|---|
| 15 | Q_OBJECT
|
|---|
| 16 | public:
|
|---|
| 17 | t_pppRunRealTime(const t_pppOptions* opt);
|
|---|
| 18 | ~t_pppRunRealTime();
|
|---|
| 19 |
|
|---|
| 20 | signals:
|
|---|
| 21 | void newMessage(QByteArray msg, bool showOnScreen);
|
|---|
| 22 | void newPosition(bncTime time, double x, double y, double z);
|
|---|
| 23 | void newNMEAstr(QByteArray str);
|
|---|
| 24 |
|
|---|
| 25 | public slots:
|
|---|
| 26 | void slotNewEphGPS(gpsephemeris gpseph);
|
|---|
| 27 | void slotNewEphGlonass(glonassephemeris gloeph);
|
|---|
| 28 | void slotNewEphGalileo(galileoephemeris galeph);
|
|---|
| 29 | void slotNewCorrections(QStringList corrList);
|
|---|
| 30 | void slotNewObs(QByteArray staID, QList<t_obs> obsList);
|
|---|
| 31 |
|
|---|
| 32 | private:
|
|---|
| 33 | class t_epoData {
|
|---|
| 34 | public:
|
|---|
| 35 | t_epoData() {}
|
|---|
| 36 | ~t_epoData() {
|
|---|
| 37 | for (unsigned ii = 0; ii < _satObs.size(); ii++) {
|
|---|
| 38 | delete _satObs[ii];
|
|---|
| 39 | }
|
|---|
| 40 | }
|
|---|
| 41 | bncTime _time;
|
|---|
| 42 | std::vector<t_satObs*> _satObs;
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | QMutex _mutex;
|
|---|
| 46 | const t_pppOptions* _opt;
|
|---|
| 47 | t_pppClient* _pppClient;
|
|---|
| 48 | std::deque<t_epoData*> _epoData;
|
|---|
| 49 | int _lastOrbCorrIOD[t_prn::MAXPRN+1];
|
|---|
| 50 | double _lastClkCorrValue[t_prn::MAXPRN+1];
|
|---|
| 51 | bncTime _lastClkCorrTime;
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.