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

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

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

File size: 2.9 KB
RevLine 
[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"
[8969]8#include "../RTCM3/clock_and_orbit/clock_orbit_rtcm.h"
9#include "../RTCM3/clock_and_orbit/clock_orbit_igs.h"
[3222]10
[3224]11class bncEphUser;
[3222]12class bncoutf;
13class bncClockRinex;
14class bncSP3;
15
[3224]16class bncRtnetUploadCaster : public bncUploadCaster {
[3222]17 Q_OBJECT
18 public:
[3224]19 bncRtnetUploadCaster(const QString& mountpoint,
[3222]20 const QString& outHost, int outPort,
[9032]21 const QString& ntripVersion, const QString& userName,
22 const QString& password,
[9025]23 const QString& crdTrafo, const QString& ssrFormat,
[9032]24 bool CoM,
25 const QString& sp3FileName,
[3222]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:
[8542]32 t_irc processSatellite(const t_eph* eph, int GPSweek,
[8017]33 double GPSweeks, const QString& prn,
[4991]34 const ColumnVector& rtnAPC,
[8483]35 double ura,
36 const ColumnVector& rtnClk,
[4991]37 const ColumnVector& rtnVel,
38 const ColumnVector& rtnCoM,
[8483]39 const ColumnVector& rtnClkSig,
[9025]40 struct SsrCorr::ClockOrbit::SatData* sd,
[3222]41 QString& outLine);
[9179]42
43 bool corrIsOutOfRange(struct SsrCorr::ClockOrbit::SatData* sd);
44
[4803]45 void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc);
[3222]46
[6557]47 int determineUpdateInd(double samplingRate);
48
[5130]49 QString _casterID;
[3222]50 bncEphUser* _ephUser;
51 QString _rtnetStreamBuffer;
52 QString _crdTrafo;
[9025]53 SsrCorr* _ssrCorr;
54 QString _ssrFormat;
[3222]55 bool _CoM;
[9128]56 bool _phaseBiasInformationDecoded;
[4111]57 int _PID;
58 int _SID;
59 int _IOD;
[6557]60 int _samplRtcmClkCorr;
[4174]61 double _samplRtcmEphCorr;
[3222]62 double _dx;
63 double _dy;
64 double _dz;
65 double _dxr;
66 double _dyr;
67 double _dzr;
68 double _ox;
69 double _oy;
70 double _oz;
71 double _oxr;
72 double _oyr;
73 double _ozr;
74 double _sc;
75 double _scr;
76 double _t0;
77 bncClockRinex* _rnx;
78 bncSP3* _sp3;
[6442]79 QMap<QString, const t_eph*>* _usedEph;
[3222]80};
81
[6850]82struct phaseBiasesSat {
[7257]83 phaseBiasesSat() {
[8017]84 yawAngle = 0.0;
85 yawRate = 0.0;
[7257]86 }
[8017]87 double yawAngle;
88 double yawRate;
[6850]89};
90
91struct phaseBiasSignal {
[7257]92 phaseBiasSignal() {
93 bias = 0.0;
[8017]94 integerIndicator = 0;
95 wlIndicator = 0;
96 discontinuityCounter = 0;
[7257]97 }
[6850]98 QString type;
99 double bias;
[8017]100 unsigned int integerIndicator;
101 unsigned int wlIndicator;
102 unsigned int discontinuityCounter;
[6850]103};
104
[3222]105#endif
Note: See TracBrowser for help on using the repository browser.