source: ntrip/trunk/BNC/bncpppclient.h@ 2057

Last change on this file since 2057 was 2057, checked in by mervart, 14 years ago

* empty log message *

File size: 2.6 KB
Line 
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
37class t_satData {
38 public:
39 enum codeType {P_CODE, C_CODE};
40 double P1;
41 double P2;
42 double P3;
43 double L1;
44 double L2;
45 double L3;
46 codeType codeTypeF1;
47 codeType codeTypeF2;
48 ColumnVector xx;
49 ColumnVector vv;
50 double clk;
51 bool clkCorr;
52};
53
54class t_epoData {
55 public:
56 t_epoData() {}
57 ~t_epoData() {
58 QMapIterator<QString, t_satData*> it(satData);
59 while (it.hasNext()) {
60 it.next();
61 delete it.value();
62 }
63 }
64 unsigned size() const {return satData.size();}
65 t_time tt;
66 QMap<QString, t_satData*> satData;
67};
68
69class t_corr {
70 public:
71 t_time tt;
72 int iod;
73 double dClk;
74 ColumnVector rao;
75};
76
77class bncPPPclient : public QObject {
78 Q_OBJECT
79
80 public:
81 bncPPPclient(QByteArray staID);
82 ~bncPPPclient();
83 void putNewObs(p_obs pp);
84
85 signals:
86 void newMessage(QByteArray msg, bool showOnScreen);
87
88 public slots:
89 void slotNewEphGPS(gpsephemeris gpseph);
90 void slotNewCorrections(QList<QString> corrList);
91
92 private:
93 t_irc getSatPos(const t_time& tt, const QString& prn,
94 ColumnVector& xc, ColumnVector& vv, bool& corr);
95 void processEpoch();
96 void applyCorr(const t_corr* cc, ColumnVector& xc, ColumnVector& vv);
97 t_irc cmpToT(const QString& prn, t_satData* satData);
98
99 QByteArray _staID;
100 QMutex _mutex;
101 QMap<QString, t_eph*> _eph;
102 QMap<QString, t_corr*> _corr;
103 t_epoData* _epoData;
104};
105
106#endif
Note: See TracBrowser for help on using the repository browser.