[7237] | 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:
|
---|
[7288] | 23 | t_pppClient(const t_pppOptions* opt);
|
---|
| 24 | ~t_pppClient();
|
---|
[7237] | 25 |
|
---|
[7288] | 26 | void putEphemeris(const t_eph* eph);
|
---|
[7237] | 27 | void putTec(const t_vTec* vTec);
|
---|
[7288] | 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);
|
---|
[7237] | 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;}
|
---|
[8905] | 36 | const bncAntex* antex() const {return _antex;}
|
---|
[7237] | 37 | const t_pppStation* staRover() const {return _staRover;}
|
---|
[10256] | 38 | double offGlo() const {return _offGlo;}
|
---|
| 39 | double offGal() const {return _offGal;}
|
---|
| 40 | double offBds() const {return _offBds;}
|
---|
[7237] | 41 |
|
---|
[10373] | 42 |
|
---|
[7237] | 43 | std::ostringstream& log() {return *_log;}
|
---|
[7248] | 44 | const t_pppOptions* opt() const {return _opt;}
|
---|
[9600] | 45 | static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
|
---|
[7237] | 46 |
|
---|
| 47 | static t_pppClient* instance();
|
---|
| 48 |
|
---|
[7972] | 49 | void reset();
|
---|
| 50 |
|
---|
[7237] | 51 | private:
|
---|
| 52 | void initOutput(t_output* output);
|
---|
[9545] | 53 | void finish(t_irc irc, int ind);
|
---|
[7237] | 54 | void clearObs();
|
---|
| 55 | t_irc prepareObs(const std::vector<t_satObs*>& satObs,
|
---|
| 56 | std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
|
---|
[8905] | 57 | bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
|
---|
[9560] | 58 | void useObsWithCodeBiasesOnly(std::vector<t_pppSatObs*>& obsVector);
|
---|
[7237] | 59 | t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
|
---|
| 60 | std::vector<t_pppSatObs*>& obsVector);
|
---|
[7288] | 61 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
|
---|
[7237] | 62 | ColumnVector& xyzc, bool print);
|
---|
[10256] | 63 | double cmpOffGlo(std::vector<t_pppSatObs*>& obsVector);
|
---|
| 64 | double cmpOffGal(std::vector<t_pppSatObs*>& obsVector);
|
---|
| 65 | double cmpOffBds(std::vector<t_pppSatObs*>& obsVector);
|
---|
[10232] | 66 |
|
---|
[10256] | 67 |
|
---|
[7237] | 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;
|
---|
[10256] | 75 | double _offGlo;
|
---|
| 76 | double _offGal;
|
---|
| 77 | double _offBds;
|
---|
[7237] | 78 | std::vector<t_pppSatObs*> _obsRover;
|
---|
[7288] | 79 | std::ostringstream* _log;
|
---|
| 80 | t_pppOptions* _opt;
|
---|
[7237] | 81 | t_tides* _tides;
|
---|
[8905] | 82 | bool _pseudoObsIono;
|
---|
[10256] | 83 | QMap<char, int> _usedSystems;
|
---|
[10259] | 84 | bool _running;
|
---|
[7237] | 85 | };
|
---|
| 86 |
|
---|
| 87 | }; // namespace BNC_PPP
|
---|
| 88 |
|
---|
| 89 | #define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
|
---|
| 90 | #define LOG (BNC_PPP::t_pppClient::instance()->log())
|
---|
| 91 | #define OPT (BNC_PPP::t_pppClient::instance()->opt())
|
---|
| 92 |
|
---|
| 93 | #endif
|
---|