[3224] | 1 | #ifndef BNCRTNETUPLOADCASTER_H
|
---|
| 2 | #define BNCRTNETUPLOADCASTER_H
|
---|
[3222] | 3 |
|
---|
[3224] | 4 | #include <newmat.h>
|
---|
| 5 | #include "bncuploadcaster.h"
|
---|
[3222] | 6 | #include "bnctime.h"
|
---|
[3225] | 7 | #include "ephemeris.h"
|
---|
| 8 | extern "C" {
|
---|
[3224] | 9 | #include "clock_orbit_rtcm.h"
|
---|
[3225] | 10 | }
|
---|
[3222] | 11 |
|
---|
[3224] | 12 | class bncEphUser;
|
---|
[3222] | 13 | class bncoutf;
|
---|
| 14 | class bncClockRinex;
|
---|
| 15 | class bncSP3;
|
---|
| 16 |
|
---|
[3224] | 17 | class bncRtnetUploadCaster : public bncUploadCaster {
|
---|
[3222] | 18 | Q_OBJECT
|
---|
| 19 | public:
|
---|
[3224] | 20 | bncRtnetUploadCaster(const QString& mountpoint,
|
---|
[3222] | 21 | const QString& outHost, int outPort,
|
---|
[8275] | 22 | const QString& ntripVersion,
|
---|
| 23 | const QString& userName,const QString& password,
|
---|
[8017] | 24 | const QString& crdTrafo, bool CoM,
|
---|
[3222] | 25 | const QString& sp3FileName,
|
---|
| 26 | const QString& rnxFileName,
|
---|
[4111] | 27 | int PID, int SID, int IOD, int iRow);
|
---|
[3226] | 28 | void decodeRtnetStream(char* buffer, int bufLen);
|
---|
[3222] | 29 | protected:
|
---|
[3224] | 30 | virtual ~bncRtnetUploadCaster();
|
---|
[3222] | 31 | private:
|
---|
[8017] | 32 | void processSatellite(const t_eph* eph, int GPSweek,
|
---|
| 33 | double GPSweeks, const QString& prn,
|
---|
[4991] | 34 | const ColumnVector& rtnAPC,
|
---|
| 35 | double rtnClk,
|
---|
| 36 | const ColumnVector& rtnVel,
|
---|
| 37 | const ColumnVector& rtnCoM,
|
---|
[3222] | 38 | struct ClockOrbit::SatData* sd,
|
---|
| 39 | QString& outLine);
|
---|
[4803] | 40 | void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc);
|
---|
[3222] | 41 |
|
---|
[8145] | 42 | // TODO: the following lines can be deleted if all parameters are updated regarding ITRF2014
|
---|
| 43 | void crdTrafo8(int GPSWeek, ColumnVector& xyz, double& dc);
|
---|
| 44 |
|
---|
[6557] | 45 | int determineUpdateInd(double samplingRate);
|
---|
| 46 |
|
---|
[5130] | 47 | QString _casterID;
|
---|
[3222] | 48 | bncEphUser* _ephUser;
|
---|
| 49 | QString _rtnetStreamBuffer;
|
---|
| 50 | QString _crdTrafo;
|
---|
| 51 | bool _CoM;
|
---|
[4111] | 52 | int _PID;
|
---|
| 53 | int _SID;
|
---|
| 54 | int _IOD;
|
---|
[6557] | 55 | int _samplRtcmClkCorr;
|
---|
[4174] | 56 | double _samplRtcmEphCorr;
|
---|
[3222] | 57 | double _dx;
|
---|
| 58 | double _dy;
|
---|
| 59 | double _dz;
|
---|
| 60 | double _dxr;
|
---|
| 61 | double _dyr;
|
---|
| 62 | double _dzr;
|
---|
| 63 | double _ox;
|
---|
| 64 | double _oy;
|
---|
| 65 | double _oz;
|
---|
| 66 | double _oxr;
|
---|
| 67 | double _oyr;
|
---|
| 68 | double _ozr;
|
---|
| 69 | double _sc;
|
---|
| 70 | double _scr;
|
---|
| 71 | double _t0;
|
---|
| 72 | bncClockRinex* _rnx;
|
---|
| 73 | bncSP3* _sp3;
|
---|
[6442] | 74 | QMap<QString, const t_eph*>* _usedEph;
|
---|
[8145] | 75 | // TODO: the following lines can be deleted if all parameters are updated regarding ITRF2014
|
---|
| 76 | double _dx8;
|
---|
| 77 | double _dy8;
|
---|
| 78 | double _dz8;
|
---|
| 79 | double _dxr8;
|
---|
| 80 | double _dyr8;
|
---|
| 81 | double _dzr8;
|
---|
| 82 | double _ox8;
|
---|
| 83 | double _oy8;
|
---|
| 84 | double _oz8;
|
---|
| 85 | double _oxr8;
|
---|
| 86 | double _oyr8;
|
---|
| 87 | double _ozr8;
|
---|
| 88 | double _sc8;
|
---|
| 89 | double _scr8;
|
---|
| 90 | double _t08;
|
---|
[3222] | 91 | };
|
---|
| 92 |
|
---|
[6850] | 93 | struct phaseBiasesSat {
|
---|
[7257] | 94 | phaseBiasesSat() {
|
---|
[8017] | 95 | yawAngle = 0.0;
|
---|
| 96 | yawRate = 0.0;
|
---|
[7257] | 97 | }
|
---|
[8017] | 98 | double yawAngle;
|
---|
| 99 | double yawRate;
|
---|
[6850] | 100 | };
|
---|
| 101 |
|
---|
| 102 | struct phaseBiasSignal {
|
---|
[7257] | 103 | phaseBiasSignal() {
|
---|
| 104 | bias = 0.0;
|
---|
[8017] | 105 | integerIndicator = 0;
|
---|
| 106 | wlIndicator = 0;
|
---|
| 107 | discontinuityCounter = 0;
|
---|
[7257] | 108 | }
|
---|
[6850] | 109 | QString type;
|
---|
| 110 | double bias;
|
---|
[8017] | 111 | unsigned int integerIndicator;
|
---|
| 112 | unsigned int wlIndicator;
|
---|
| 113 | unsigned int discontinuityCounter;
|
---|
[6850] | 114 | };
|
---|
| 115 |
|
---|
[3222] | 116 | #endif
|
---|