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

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

* empty log message *

File size: 2.2 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
37#define MAXPRN =
38
39class t_data {
40 public:
41 static const int MAXOBS = 56;
42 t_data() {numSat = 0;}
43 ~t_data() {}
44 t_time tt;
45 int numSat;
46 QString prn[MAXOBS+1];
47 double C1[MAXOBS+1];
48 double C2[MAXOBS+1];
49 double P1[MAXOBS+1];
50 double P2[MAXOBS+1];
51 double L1[MAXOBS+1];
52 double L2[MAXOBS+1];
53};
54
55class t_corr {
56 public:
57 t_time tt;
58 int iod;
59 double dClk;
60 double rao[3];
61};
62
63class bncPPPclient {
64 Q_OBJECT
65
66 public:
67 bncPPPclient(QByteArray staID);
68 ~bncPPPclient();
69 void putNewObs(p_obs pp);
70
71 signals:
72 void newMessage(QByteArray msg, bool showOnScreen);
73
74 public slots:
75 void slotNewEphGPS(gpsephemeris gpseph);
76 void slotNewCorrections(QList<QString> corrList);
77
78 private:
79 t_irc getSatPos(const t_time& tt, const QString& prn,
80 ColumnVector& xc, ColumnVector& vv);
81 void processEpoch();
82 QByteArray _staID;
83 QMutex _mutex;
84 QMap<QString, t_eph*> _eph;
85 QMap<QString, t_corr*> _corr;
86 t_data* _data;
87 t_data* _dataHlp;
88};
89
90#endif
Note: See TracBrowser for help on using the repository browser.