[2035] | 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 BNCPPPCLIENT_H
|
---|
| 26 | #define BNCPPPCLIENT_H
|
---|
| 27 |
|
---|
| 28 | #include <QtNetwork>
|
---|
| 29 |
|
---|
| 30 | #include <newmat.h>
|
---|
| 31 |
|
---|
| 32 | #include "bncconst.h"
|
---|
| 33 | #include "t_time.h"
|
---|
| 34 | #include "RTCM/GPSDecoder.h"
|
---|
| 35 | #include "RTCM3/ephemeris.h"
|
---|
| 36 |
|
---|
| 37 | #define MAXPRN =
|
---|
| 38 |
|
---|
[2039] | 39 | class t_satData {
|
---|
[2035] | 40 | public:
|
---|
[2039] | 41 | double C1;
|
---|
| 42 | double C2;
|
---|
| 43 | double P1;
|
---|
| 44 | double P2;
|
---|
| 45 | double L1;
|
---|
| 46 | double L2;
|
---|
[2035] | 47 | };
|
---|
| 48 |
|
---|
[2039] | 49 | class t_epoData {
|
---|
| 50 | public:
|
---|
| 51 | t_epoData() {}
|
---|
| 52 | ~t_epoData() {
|
---|
| 53 | QMapIterator<QString, t_satData*> it(satData);
|
---|
| 54 | while (it.hasNext()) {
|
---|
| 55 | it.next();
|
---|
| 56 | delete it.value();
|
---|
| 57 | }
|
---|
| 58 | }
|
---|
| 59 | t_time tt;
|
---|
| 60 | QMap<QString, t_satData*> satData;
|
---|
| 61 | };
|
---|
| 62 |
|
---|
[2035] | 63 | class t_corr {
|
---|
| 64 | public:
|
---|
| 65 | t_time tt;
|
---|
| 66 | int iod;
|
---|
| 67 | double dClk;
|
---|
| 68 | double rao[3];
|
---|
| 69 | };
|
---|
| 70 |
|
---|
[2036] | 71 | class bncPPPclient : public QObject {
|
---|
[2035] | 72 | Q_OBJECT
|
---|
| 73 |
|
---|
| 74 | public:
|
---|
| 75 | bncPPPclient(QByteArray staID);
|
---|
| 76 | ~bncPPPclient();
|
---|
| 77 | void putNewObs(p_obs pp);
|
---|
| 78 |
|
---|
| 79 | signals:
|
---|
| 80 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
| 81 |
|
---|
| 82 | public slots:
|
---|
| 83 | void slotNewEphGPS(gpsephemeris gpseph);
|
---|
| 84 | void slotNewCorrections(QList<QString> corrList);
|
---|
| 85 |
|
---|
| 86 | private:
|
---|
| 87 | t_irc getSatPos(const t_time& tt, const QString& prn,
|
---|
| 88 | ColumnVector& xc, ColumnVector& vv);
|
---|
| 89 | void processEpoch();
|
---|
| 90 | QByteArray _staID;
|
---|
| 91 | QMutex _mutex;
|
---|
| 92 | QMap<QString, t_eph*> _eph;
|
---|
| 93 | QMap<QString, t_corr*> _corr;
|
---|
[2039] | 94 | t_epoData* _epoData;
|
---|
[2035] | 95 | };
|
---|
| 96 |
|
---|
| 97 | #endif
|
---|