source: ntrip/branches/BNC_2.12/src/upload/bncrtnetuploadcaster.h

Last change on this file was 9180, checked in by stuerze, 3 years ago

check if orbit and clock corrections are in defined ranges is added

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