1 | #ifndef BNCUPLOADCASTER_H
|
---|
2 | #define BNCUPLOADCASTER_H
|
---|
3 |
|
---|
4 | #include <QtNetwork>
|
---|
5 | #include "bncephuser.h"
|
---|
6 | #include "bnctime.h"
|
---|
7 |
|
---|
8 | class bncoutf;
|
---|
9 | class bncClockRinex;
|
---|
10 | class bncSP3;
|
---|
11 |
|
---|
12 | class bncUploadCaster : public QThread {
|
---|
13 | Q_OBJECT
|
---|
14 | public:
|
---|
15 | bncUploadCaster(const QString& mountpoint,
|
---|
16 | const QString& outHost, int outPort,
|
---|
17 | const QString& password,
|
---|
18 | const QString& crdTrafo, bool CoM,
|
---|
19 | const QString& sp3FileName,
|
---|
20 | const QString& rnxFileName,
|
---|
21 | const QString& outFileName);
|
---|
22 | virtual ~bncUploadCaster();
|
---|
23 | virtual void run();
|
---|
24 | void decodeRtnetStream(char* buffer, int bufLen,
|
---|
25 | const QMap<QString, bncEphUser::t_ephPair*>& ephMap);
|
---|
26 |
|
---|
27 | signals:
|
---|
28 | void newMessage(const QByteArray msg, bool showOnScreen);
|
---|
29 |
|
---|
30 | private:
|
---|
31 | void open();
|
---|
32 | void write(char* buffer, unsigned len);
|
---|
33 | void uploadClockOrbitBias();
|
---|
34 | void processSatellite(t_eph* eph, int GPSweek,
|
---|
35 | double GPSweeks, const QString& prn,
|
---|
36 | const ColumnVector& xx,
|
---|
37 | struct ClockOrbit::SatData* sd,
|
---|
38 | QString& outLine);
|
---|
39 | void crdTrafo(int GPSWeek, ColumnVector& xyz);
|
---|
40 |
|
---|
41 | QMap<QString, t_eph*>* _ephMap;
|
---|
42 | QMutex _mutex;
|
---|
43 | QString _rtnetStreamBuffer;
|
---|
44 | bncTime _epoTime;
|
---|
45 | QString _mountpoint;
|
---|
46 | QString _outHost;
|
---|
47 | int _outPort;
|
---|
48 | QString _password;
|
---|
49 | QString _crdTrafo;
|
---|
50 | bool _CoM;
|
---|
51 | QTcpSocket* _outSocket;
|
---|
52 | int _sOpenTrial;
|
---|
53 | QDateTime _outSocketOpenTime;
|
---|
54 | double _dx;
|
---|
55 | double _dy;
|
---|
56 | double _dz;
|
---|
57 | double _dxr;
|
---|
58 | double _dyr;
|
---|
59 | double _dzr;
|
---|
60 | double _ox;
|
---|
61 | double _oy;
|
---|
62 | double _oz;
|
---|
63 | double _oxr;
|
---|
64 | double _oyr;
|
---|
65 | double _ozr;
|
---|
66 | double _sc;
|
---|
67 | double _scr;
|
---|
68 | double _t0;
|
---|
69 | bncoutf* _outFile;
|
---|
70 | bncClockRinex* _rnx;
|
---|
71 | bncSP3* _sp3;
|
---|
72 | };
|
---|
73 |
|
---|
74 | #endif
|
---|