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

Last change on this file since 9868 was 9868, checked in by stuerze, 18 months ago

minor changes

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