[1999] | 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 BNCPPPTHREAD_H
|
---|
| 26 | #define BNCPPPTHREAD_H
|
---|
| 27 |
|
---|
| 28 | #include <QThread>
|
---|
| 29 | #include <QtNetwork>
|
---|
| 30 |
|
---|
| 31 | #include "RTCM/GPSDecoder.h"
|
---|
[2021] | 32 | #include "RTCM3/ephemeris.h"
|
---|
[1999] | 33 |
|
---|
[2022] | 34 | struct t_corr {
|
---|
| 35 | int iod;
|
---|
| 36 | double dClk;
|
---|
| 37 | double rao[3];
|
---|
| 38 | };
|
---|
| 39 |
|
---|
[1999] | 40 | class bncPPPthread : public QThread {
|
---|
| 41 | Q_OBJECT
|
---|
| 42 |
|
---|
| 43 | public:
|
---|
| 44 | bncPPPthread(QByteArray staID);
|
---|
| 45 |
|
---|
| 46 | protected:
|
---|
| 47 | ~bncPPPthread();
|
---|
| 48 |
|
---|
| 49 | public:
|
---|
| 50 | void terminate();
|
---|
| 51 |
|
---|
| 52 | signals:
|
---|
| 53 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | protected:
|
---|
| 57 | virtual void run();
|
---|
| 58 |
|
---|
| 59 | public slots:
|
---|
[2001] | 60 | void slotNewEpochData(QList<p_obs> obsList);
|
---|
[1999] | 61 | void slotNewEphGPS(gpsephemeris gpseph);
|
---|
[2001] | 62 | void slotNewCorrections(QList<QString> corrList);
|
---|
[1999] | 63 |
|
---|
| 64 | private:
|
---|
[2022] | 65 | QByteArray _staID;
|
---|
| 66 | bool _isToBeDeleted;
|
---|
| 67 | QMutex _mutex;
|
---|
| 68 | QMap<QString, t_eph*> _eph;
|
---|
| 69 | QMap<QString, t_corr*> _corr;
|
---|
[1999] | 70 | };
|
---|
| 71 |
|
---|
| 72 | #endif
|
---|