1 | #ifndef PPPCLIENT_H
|
---|
2 | #define PPPCLIENT_H
|
---|
3 |
|
---|
4 | #include <sstream>
|
---|
5 | #include <vector>
|
---|
6 | #include "pppInclude.h"
|
---|
7 | #include "ephemeris.h"
|
---|
8 | #include "pppOptions.h"
|
---|
9 | #include "pppModel.h"
|
---|
10 |
|
---|
11 | class bncAntex;
|
---|
12 |
|
---|
13 | namespace BNC_PPP {
|
---|
14 |
|
---|
15 | class t_pppEphPool;
|
---|
16 | class t_pppObsPool;
|
---|
17 | class t_pppSatObs;
|
---|
18 | class t_pppStation;
|
---|
19 | class t_pppFilter;
|
---|
20 |
|
---|
21 | class t_pppClient : public interface_pppClient {
|
---|
22 | public:
|
---|
23 | t_pppClient(const t_pppOptions* opt);
|
---|
24 | ~t_pppClient();
|
---|
25 |
|
---|
26 | void putEphemeris(const t_eph* eph);
|
---|
27 | void putTec(const t_vTec* vTec);
|
---|
28 | void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
|
---|
29 | void putClkCorrections(const std::vector<t_clkCorr*>& corr);
|
---|
30 | void putCodeBiases(const std::vector<t_satCodeBias*>& biases);
|
---|
31 | void putPhaseBiases(const std::vector<t_satPhaseBias*>& biases);
|
---|
32 | void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
|
---|
33 |
|
---|
34 | const t_pppEphPool* ephPool() const {return _ephPool;}
|
---|
35 | const t_pppObsPool* obsPool() const {return _obsPool;}
|
---|
36 | const bncAntex* antex() const {return _antex;}
|
---|
37 | const t_pppStation* staRover() const {return _staRover;}
|
---|
38 |
|
---|
39 | std::ostringstream& log() {return *_log;}
|
---|
40 | const t_pppOptions* opt() const {return _opt;}
|
---|
41 | static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
|
---|
42 |
|
---|
43 | static t_pppClient* instance();
|
---|
44 |
|
---|
45 | void reset();
|
---|
46 |
|
---|
47 | private:
|
---|
48 | void initOutput(t_output* output);
|
---|
49 | void finish(t_irc irc, int ind);
|
---|
50 | void clearObs();
|
---|
51 | t_irc prepareObs(const std::vector<t_satObs*>& satObs,
|
---|
52 | std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
|
---|
53 | bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
|
---|
54 | void useObsWithCodeBiasesOnly(std::vector<t_pppSatObs*>& obsVector);
|
---|
55 | t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
|
---|
56 | std::vector<t_pppSatObs*>& obsVector);
|
---|
57 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
|
---|
58 | ColumnVector& xyzc, bool print);
|
---|
59 | double cmpOffGps(std::vector<t_pppSatObs*>& obsVector);
|
---|
60 | double cmpOffGlo(std::vector<t_pppSatObs*>& obsVector);
|
---|
61 | double cmpOffGal(std::vector<t_pppSatObs*>& obsVector);
|
---|
62 | double cmpOffBds(std::vector<t_pppSatObs*>& obsVector);
|
---|
63 |
|
---|
64 |
|
---|
65 | t_output* _output;
|
---|
66 | t_pppEphPool* _ephPool;
|
---|
67 | t_pppObsPool* _obsPool;
|
---|
68 | bncTime _epoTimeRover;
|
---|
69 | t_pppStation* _staRover;
|
---|
70 | bncAntex* _antex;
|
---|
71 | t_pppFilter* _filter;
|
---|
72 | double _offGps;
|
---|
73 | double _offGlo;
|
---|
74 | double _offGal;
|
---|
75 | double _offBds;
|
---|
76 | std::vector<t_pppSatObs*> _obsRover;
|
---|
77 | std::ostringstream* _log;
|
---|
78 | t_pppOptions* _opt;
|
---|
79 | t_tides* _tides;
|
---|
80 | bool _pseudoObsIono;
|
---|
81 | QMap<char, int> _usedSystems;
|
---|
82 | bool _running;
|
---|
83 | };
|
---|
84 |
|
---|
85 | }; // namespace BNC_PPP
|
---|
86 |
|
---|
87 | #define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
|
---|
88 | #define LOG (BNC_PPP::t_pppClient::instance()->log())
|
---|
89 | #define OPT (BNC_PPP::t_pppClient::instance()->opt())
|
---|
90 |
|
---|
91 | #endif
|
---|