[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,
|
---|
[8415] | 22 | const QString& password,
|
---|
| 23 | const QString& crdTrafo, bool CoM,
|
---|
[3222] | 24 | const QString& sp3FileName,
|
---|
| 25 | const QString& rnxFileName,
|
---|
[4111] | 26 | int PID, int SID, int IOD, int iRow);
|
---|
[3226] | 27 | void decodeRtnetStream(char* buffer, int bufLen);
|
---|
[3222] | 28 | protected:
|
---|
[3224] | 29 | virtual ~bncRtnetUploadCaster();
|
---|
[3222] | 30 | private:
|
---|
[8415] | 31 | void processSatellite(const t_eph* eph, int GPSweek,
|
---|
| 32 | double GPSweeks, const QString& prn,
|
---|
[4991] | 33 | const ColumnVector& rtnAPC,
|
---|
| 34 | double rtnClk,
|
---|
| 35 | const ColumnVector& rtnVel,
|
---|
| 36 | const ColumnVector& rtnCoM,
|
---|
[3222] | 37 | struct ClockOrbit::SatData* sd,
|
---|
| 38 | QString& outLine);
|
---|
[4803] | 39 | void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc);
|
---|
[3222] | 40 |
|
---|
[6557] | 41 | int determineUpdateInd(double samplingRate);
|
---|
| 42 |
|
---|
[5130] | 43 | QString _casterID;
|
---|
[3222] | 44 | bncEphUser* _ephUser;
|
---|
| 45 | QString _rtnetStreamBuffer;
|
---|
| 46 | QString _crdTrafo;
|
---|
| 47 | bool _CoM;
|
---|
[4111] | 48 | int _PID;
|
---|
| 49 | int _SID;
|
---|
| 50 | int _IOD;
|
---|
[6557] | 51 | int _samplRtcmClkCorr;
|
---|
[4174] | 52 | double _samplRtcmEphCorr;
|
---|
[3222] | 53 | double _dx;
|
---|
| 54 | double _dy;
|
---|
| 55 | double _dz;
|
---|
| 56 | double _dxr;
|
---|
| 57 | double _dyr;
|
---|
| 58 | double _dzr;
|
---|
| 59 | double _ox;
|
---|
| 60 | double _oy;
|
---|
| 61 | double _oz;
|
---|
| 62 | double _oxr;
|
---|
| 63 | double _oyr;
|
---|
| 64 | double _ozr;
|
---|
| 65 | double _sc;
|
---|
| 66 | double _scr;
|
---|
| 67 | double _t0;
|
---|
| 68 | bncClockRinex* _rnx;
|
---|
| 69 | bncSP3* _sp3;
|
---|
[6442] | 70 | QMap<QString, const t_eph*>* _usedEph;
|
---|
[3222] | 71 | };
|
---|
| 72 |
|
---|
[6850] | 73 | struct phaseBiasesSat {
|
---|
[7257] | 74 | phaseBiasesSat() {
|
---|
[8018] | 75 | yawAngle = 0.0;
|
---|
| 76 | yawRate = 0.0;
|
---|
[7257] | 77 | }
|
---|
[8018] | 78 | double yawAngle;
|
---|
| 79 | double yawRate;
|
---|
[6850] | 80 | };
|
---|
| 81 |
|
---|
| 82 | struct phaseBiasSignal {
|
---|
[7257] | 83 | phaseBiasSignal() {
|
---|
| 84 | bias = 0.0;
|
---|
[8018] | 85 | integerIndicator = 0;
|
---|
| 86 | wlIndicator = 0;
|
---|
| 87 | discontinuityCounter = 0;
|
---|
[7257] | 88 | }
|
---|
[6850] | 89 | QString type;
|
---|
| 90 | double bias;
|
---|
[8018] | 91 | unsigned int integerIndicator;
|
---|
| 92 | unsigned int wlIndicator;
|
---|
| 93 | unsigned int discontinuityCounter;
|
---|
[6850] | 94 | };
|
---|
| 95 |
|
---|
[3222] | 96 | #endif
|
---|