1 | #ifndef BNCRTNETUPLOADCASTER_H
|
---|
2 | #define BNCRTNETUPLOADCASTER_H
|
---|
3 |
|
---|
4 | #include <newmat.h>
|
---|
5 | #include "bncuploadcaster.h"
|
---|
6 | #include "bnctime.h"
|
---|
7 | #include "ephemeris.h"
|
---|
8 | #include "../RTCM3/clock_and_orbit/clock_orbit_rtcm.h"
|
---|
9 | #include "../RTCM3/clock_and_orbit/clock_orbit_igs.h"
|
---|
10 |
|
---|
11 | class bncEphUser;
|
---|
12 | class bncoutf;
|
---|
13 | class bncClockRinex;
|
---|
14 | class bncSP3;
|
---|
15 |
|
---|
16 | class bncRtnetUploadCaster : public bncUploadCaster {
|
---|
17 | Q_OBJECT
|
---|
18 | public:
|
---|
19 | bncRtnetUploadCaster(const QString& mountpoint,
|
---|
20 | const QString& outHost, int outPort,
|
---|
21 | const QString& ntripVersion, const QString& userName,
|
---|
22 | const QString& password,
|
---|
23 | const QString& crdTrafo, const QString& ssrFormat,
|
---|
24 | bool CoM,
|
---|
25 | const QString& sp3FileName,
|
---|
26 | const QString& rnxFileName,
|
---|
27 | int PID, int SID, int IOD, int iRow);
|
---|
28 | void decodeRtnetStream(char* buffer, int bufLen);
|
---|
29 | protected:
|
---|
30 | virtual ~bncRtnetUploadCaster();
|
---|
31 | private:
|
---|
32 | t_irc processSatellite(const t_eph* eph, int GPSweek,
|
---|
33 | double GPSweeks, const QString& prn,
|
---|
34 | const ColumnVector& rtnAPC,
|
---|
35 | double ura,
|
---|
36 | const ColumnVector& rtnClk,
|
---|
37 | const ColumnVector& rtnVel,
|
---|
38 | const ColumnVector& rtnCoM,
|
---|
39 | const ColumnVector& rtnClkSig,
|
---|
40 | struct SsrCorr::ClockOrbit::SatData* sd,
|
---|
41 | QString& outLine);
|
---|
42 | void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc);
|
---|
43 |
|
---|
44 | int determineUpdateInd(double samplingRate);
|
---|
45 |
|
---|
46 | QString _casterID;
|
---|
47 | bncEphUser* _ephUser;
|
---|
48 | QString _rtnetStreamBuffer;
|
---|
49 | QString _crdTrafo;
|
---|
50 | SsrCorr* _ssrCorr;
|
---|
51 | QString _ssrFormat;
|
---|
52 | bool _CoM;
|
---|
53 | bool _phaseBiasInformationDecoded;
|
---|
54 | int _PID;
|
---|
55 | int _SID;
|
---|
56 | int _IOD;
|
---|
57 | int _samplRtcmClkCorr;
|
---|
58 | double _samplRtcmEphCorr;
|
---|
59 | double _dx;
|
---|
60 | double _dy;
|
---|
61 | double _dz;
|
---|
62 | double _dxr;
|
---|
63 | double _dyr;
|
---|
64 | double _dzr;
|
---|
65 | double _ox;
|
---|
66 | double _oy;
|
---|
67 | double _oz;
|
---|
68 | double _oxr;
|
---|
69 | double _oyr;
|
---|
70 | double _ozr;
|
---|
71 | double _sc;
|
---|
72 | double _scr;
|
---|
73 | double _t0;
|
---|
74 | bncClockRinex* _rnx;
|
---|
75 | bncSP3* _sp3;
|
---|
76 | QMap<QString, const t_eph*>* _usedEph;
|
---|
77 | };
|
---|
78 |
|
---|
79 | struct phaseBiasesSat {
|
---|
80 | phaseBiasesSat() {
|
---|
81 | yawAngle = 0.0;
|
---|
82 | yawRate = 0.0;
|
---|
83 | }
|
---|
84 | double yawAngle;
|
---|
85 | double yawRate;
|
---|
86 | };
|
---|
87 |
|
---|
88 | struct phaseBiasSignal {
|
---|
89 | phaseBiasSignal() {
|
---|
90 | bias = 0.0;
|
---|
91 | integerIndicator = 0;
|
---|
92 | wlIndicator = 0;
|
---|
93 | discontinuityCounter = 0;
|
---|
94 | }
|
---|
95 | QString type;
|
---|
96 | double bias;
|
---|
97 | unsigned int integerIndicator;
|
---|
98 | unsigned int wlIndicator;
|
---|
99 | unsigned int discontinuityCounter;
|
---|
100 | };
|
---|
101 |
|
---|
102 | #endif
|
---|