source: ntrip/trunk/BNC/src/upload/bncrtnetuploadcaster.h@ 9921

Last change on this file since 9921 was 9911, checked in by stuerze, 2 years ago

some updates towards IGS20

File size: 3.6 KB
Line 
1#ifndef BNCRTNETUPLOADCASTER_H
2#define BNCRTNETUPLOADCASTER_H
3
4#include <newmat.h>
5#include <iostream>
6#include "bncuploadcaster.h"
7#include "bnctime.h"
8#include "ephemeris.h"
9#include "../RTCM3/clock_and_orbit/clock_orbit_rtcm.h"
10#include "../RTCM3/clock_and_orbit/clock_orbit_igs.h"
11
12class bncEphUser;
13class bncoutf;
14class bncClockRinex;
15class bncSP3;
16class bncBiasSinex;
17
18class bncRtnetUploadCaster : public bncUploadCaster {
19 Q_OBJECT
20 public:
21 bncRtnetUploadCaster(const QString& mountpoint,
22 const QString& outHost, int outPort,
23 const QString& ntripVersion, const QString& userName,
24 const QString& password,
25 const QString& crdTrafo, const QString& ssrFormat,
26 bool CoM,
27 const QString& sp3FileName,
28 const QString& rnxFileName,
29 const QString& bsxFileName,
30 int PID, int SID, int IOD, int iRow);
31 void decodeRtnetStream(char* buffer, int bufLen);
32 protected:
33 virtual ~bncRtnetUploadCaster();
34 private:
35 t_irc processSatellite(const t_eph* eph, int GPSweek,
36 double GPSweeks, const QString& prn,
37 const ColumnVector& rtnAPC,
38 double ura,
39 const ColumnVector& rtnClk,
40 const ColumnVector& rtnVel,
41 const ColumnVector& rtnCoM,
42 const ColumnVector& rtnClkSig,
43 struct SsrCorr::ClockOrbit::SatData* sd,
44 QString& outLine);
45 void decodeRtnetEpoch(QStringList epochLines);
46 bool corrIsOutOfRange(struct SsrCorr::ClockOrbit::SatData* sd);
47
48 void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc);
49 // TODO: the following line can be deleted if all parameters are updated regarding ITRF2020
50 void crdTrafo14(int GPSWeek, ColumnVector& xyz, double& dc);
51
52 int determineUpdateInd(double samplingRate);
53
54 QString _casterID;
55 bncEphUser* _ephUser;
56 QString _rtnetStreamBuffer;
57 QString _crdTrafo;
58 SsrCorr* _ssrCorr;
59 QString _ssrFormat;
60 bool _CoM;
61 bool _phaseBiasInformationDecoded;
62 int _PID;
63 int _SID;
64 int _IOD;
65 int _samplRtcmClkCorr;
66 double _samplRtcmEphCorr;
67 double _dx;
68 double _dy;
69 double _dz;
70 double _dxr;
71 double _dyr;
72 double _dzr;
73 double _ox;
74 double _oy;
75 double _oz;
76 double _oxr;
77 double _oyr;
78 double _ozr;
79 double _sc;
80 double _scr;
81 double _t0;
82 // TODO: the following lines can be deleted if all parameters are updated regarding ITRF2020
83 double _dx14;
84 double _dy14;
85 double _dz14;
86 double _dxr14;
87 double _dyr14;
88 double _dzr14;
89 double _ox14;
90 double _oy14;
91 double _oz14;
92 double _oxr14;
93 double _oyr14;
94 double _ozr14;
95 double _sc14;
96 double _scr14;
97 double _t014;
98
99 bncClockRinex* _rnx;
100 bncSP3* _sp3;
101 bncBiasSinex* _bsx;
102 QMap<QString, const t_eph*>* _usedEph;
103};
104
105struct phaseBiasesSat {
106 phaseBiasesSat() {
107 yawAngle = 0.0;
108 yawRate = 0.0;
109 }
110 double yawAngle;
111 double yawRate;
112};
113
114struct phaseBiasSignal {
115 phaseBiasSignal() {
116 bias = 0.0;
117 integerIndicator = 0;
118 wlIndicator = 0;
119 discontinuityCounter = 0;
120 }
121 QString type;
122 double bias;
123 unsigned int integerIndicator;
124 unsigned int wlIndicator;
125 unsigned int discontinuityCounter;
126};
127
128#endif
Note: See TracBrowser for help on using the repository browser.