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 | class t_pppRefSat;
|
---|
13 |
|
---|
14 | namespace BNC_PPP {
|
---|
15 |
|
---|
16 | class t_pppEphPool;
|
---|
17 | class t_pppObsPool;
|
---|
18 | class t_pppSatObs;
|
---|
19 | class t_pppStation;
|
---|
20 | class t_pppFilter;
|
---|
21 |
|
---|
22 | class t_pppClient : public interface_pppClient {
|
---|
23 | public:
|
---|
24 | t_pppClient(const t_pppOptions* opt);
|
---|
25 | ~t_pppClient();
|
---|
26 |
|
---|
27 | void putEphemeris(const t_eph* eph);
|
---|
28 | void putTec(const t_vTec* vTec);
|
---|
29 | void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
|
---|
30 | void putClkCorrections(const std::vector<t_clkCorr*>& corr);
|
---|
31 | void putCodeBiases(const std::vector<t_satCodeBias*>& biases);
|
---|
32 | void putPhaseBiases(const std::vector<t_satPhaseBias*>& biases);
|
---|
33 | void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
|
---|
34 |
|
---|
35 | const t_pppEphPool* ephPool() const {return _ephPool;}
|
---|
36 | const t_pppObsPool* obsPool() const {return _obsPool;}
|
---|
37 | const bncAntex* antex() const {return _antex;}
|
---|
38 | const t_pppStation* staRover() const {return _staRover;}
|
---|
39 | double offGR() const {return _offGR;}
|
---|
40 | double offGE() const {return _offGE;}
|
---|
41 | double offGC() const {return _offGC;}
|
---|
42 |
|
---|
43 | std::ostringstream& log() {return *_log;}
|
---|
44 | const t_pppOptions* opt() const {return _opt;}
|
---|
45 |
|
---|
46 | static void bancroft(const Matrix& BBpass, ColumnVector& pos);
|
---|
47 |
|
---|
48 | static t_pppClient* instance();
|
---|
49 |
|
---|
50 | void reset();
|
---|
51 |
|
---|
52 | private:
|
---|
53 | void initOutput(t_output* output);
|
---|
54 | void finish(t_irc irc);
|
---|
55 | void clearObs();
|
---|
56 | t_irc prepareObs(const std::vector<t_satObs*>& satObs,
|
---|
57 | std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
|
---|
58 | bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
|
---|
59 | t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
|
---|
60 | std::vector<t_pppSatObs*>& obsVector);
|
---|
61 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
|
---|
62 | ColumnVector& xyzc, bool print);
|
---|
63 | double cmpOffGR(std::vector<t_pppSatObs*>& obsVector);
|
---|
64 | double cmpOffGE(std::vector<t_pppSatObs*>& obsVector);
|
---|
65 | double cmpOffGC(std::vector<t_pppSatObs*>& obsVector);
|
---|
66 | void setRefSatellites(std::vector<t_pppSatObs*>& obsVector);
|
---|
67 |
|
---|
68 | t_output* _output;
|
---|
69 | t_pppEphPool* _ephPool;
|
---|
70 | t_pppObsPool* _obsPool;
|
---|
71 | bncTime _epoTimeRover;
|
---|
72 | t_pppStation* _staRover;
|
---|
73 | bncAntex* _antex;
|
---|
74 | t_pppFilter* _filter;
|
---|
75 | double _offGR;
|
---|
76 | double _offGE;
|
---|
77 | double _offGC;
|
---|
78 | std::vector<t_pppSatObs*> _obsRover;
|
---|
79 | std::ostringstream* _log;
|
---|
80 | t_pppOptions* _opt;
|
---|
81 | t_tides* _tides;
|
---|
82 | bool _pseudoObsIono;
|
---|
83 | QList<t_prn> _historicalRefSats;
|
---|
84 | };
|
---|
85 |
|
---|
86 | }; // namespace BNC_PPP
|
---|
87 |
|
---|
88 | #define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
|
---|
89 | #define LOG (BNC_PPP::t_pppClient::instance()->log())
|
---|
90 | #define OPT (BNC_PPP::t_pppClient::instance()->opt())
|
---|
91 |
|
---|
92 | #endif
|
---|