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

Last change on this file since 9158 was 9128, checked in by stuerze, 4 years ago

minor changes

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& 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
79struct phaseBiasesSat {
80 phaseBiasesSat() {
81 yawAngle = 0.0;
82 yawRate = 0.0;
83 }
84 double yawAngle;
85 double yawRate;
86};
87
88struct 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
Note: See TracBrowser for help on using the repository browser.