Rev | Line | |
---|
[6135] | 1 | #ifndef SATOBS_H
|
---|
| 2 | #define SATOBS_H
|
---|
| 3 |
|
---|
| 4 | #include <string>
|
---|
| 5 | #include <vector>
|
---|
| 6 | #include <newmat.h>
|
---|
| 7 |
|
---|
| 8 | #include "bncconst.h"
|
---|
| 9 | #include "bnctime.h"
|
---|
| 10 | #include "t_prn.h"
|
---|
| 11 |
|
---|
| 12 | class t_frqObs {
|
---|
| 13 | public:
|
---|
| 14 | t_frqObs() {
|
---|
| 15 | _code = 0.0;
|
---|
| 16 | _codeValid = false;
|
---|
| 17 | _phase = 0.0;
|
---|
| 18 | _phaseValid = false;
|
---|
| 19 | _doppler = 0.0;
|
---|
| 20 | _dopplerValid = false;
|
---|
| 21 | _snr = 0.0;
|
---|
| 22 | _snrValid = false;
|
---|
| 23 | _slip = false;
|
---|
| 24 | _slipCounter = 0;
|
---|
| 25 | _biasJumpCounter = 0;
|
---|
| 26 | }
|
---|
| 27 | std::string _rnxType2ch;
|
---|
| 28 | double _code;
|
---|
| 29 | bool _codeValid;
|
---|
| 30 | double _phase;
|
---|
| 31 | bool _phaseValid;
|
---|
| 32 | double _doppler;
|
---|
| 33 | bool _dopplerValid;
|
---|
| 34 | double _snr;
|
---|
| 35 | bool _snrValid;
|
---|
| 36 | bool _slip;
|
---|
| 37 | int _slipCounter;
|
---|
| 38 | int _biasJumpCounter;
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 | class t_satObs {
|
---|
| 42 | public:
|
---|
| 43 | t_satObs() {}
|
---|
[6137] | 44 | t_satObs(const t_satObs& old) { // copy constructor (deep copy)
|
---|
| 45 | _staID = old._staID;
|
---|
| 46 | _prn = old._prn;
|
---|
| 47 | _time = old._time;
|
---|
| 48 | for (unsigned ii = 0; ii < old._obs.size(); ii++) {
|
---|
| 49 | _obs.push_back(new t_frqObs(*old._obs[ii]));
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
[6135] | 52 | ~t_satObs() {for (unsigned ii = 0; ii < _obs.size(); ii++) delete _obs[ii];}
|
---|
[6137] | 53 | std::string _staID;
|
---|
[6135] | 54 | t_prn _prn;
|
---|
| 55 | bncTime _time;
|
---|
| 56 | std::vector<t_frqObs*> _obs;
|
---|
| 57 | };
|
---|
| 58 |
|
---|
| 59 | class t_orbCorr {
|
---|
| 60 | public:
|
---|
[6180] | 61 | t_orbCorr() {reset();}
|
---|
[6175] | 62 | t_orbCorr(const std::string& line);
|
---|
[6180] | 63 | void reset();
|
---|
[6135] | 64 | t_prn prn() const {return _prn;}
|
---|
| 65 | unsigned short IOD() const {return _iod;}
|
---|
[6175] | 66 | std::string toLine() const;
|
---|
[6141] | 67 | std::string _staID;
|
---|
[6135] | 68 | t_prn _prn;
|
---|
| 69 | unsigned short _iod;
|
---|
| 70 | bncTime _time;
|
---|
| 71 | char _system;
|
---|
[6157] | 72 | ColumnVector _xr;
|
---|
| 73 | ColumnVector _dotXr;
|
---|
[6135] | 74 | };
|
---|
| 75 |
|
---|
| 76 | class t_clkCorr {
|
---|
| 77 | public:
|
---|
[6180] | 78 | t_clkCorr() {reset();}
|
---|
[6175] | 79 | t_clkCorr(const std::string& line);
|
---|
[6180] | 80 | void reset();
|
---|
[6135] | 81 | t_prn prn() const {return _prn;}
|
---|
| 82 | unsigned short IOD() const {return _iod;}
|
---|
[6175] | 83 | std::string toLine() const;
|
---|
[6141] | 84 | std::string _staID;
|
---|
[6135] | 85 | t_prn _prn;
|
---|
| 86 | unsigned short _iod;
|
---|
| 87 | bncTime _time;
|
---|
| 88 | double _dClk;
|
---|
| 89 | double _dotDClk;
|
---|
| 90 | double _dotDotDClk;
|
---|
| 91 | double _clkPartial;
|
---|
| 92 | };
|
---|
| 93 |
|
---|
| 94 | class t_frqBias {
|
---|
| 95 | public:
|
---|
| 96 | t_frqBias() {
|
---|
| 97 | _code = 0.0;
|
---|
| 98 | _codeValid = false;
|
---|
| 99 | _phase = 0.0;
|
---|
| 100 | _phaseValid = false;
|
---|
| 101 | }
|
---|
| 102 | std::string _rnxType2ch;
|
---|
| 103 | double _code;
|
---|
| 104 | bool _codeValid;
|
---|
| 105 | double _phase;
|
---|
| 106 | bool _phaseValid;
|
---|
| 107 | };
|
---|
| 108 |
|
---|
| 109 | class t_satBias {
|
---|
| 110 | public:
|
---|
[6141] | 111 | std::string _staID;
|
---|
[6135] | 112 | t_prn _prn;
|
---|
| 113 | bncTime _time;
|
---|
| 114 | int _nx;
|
---|
| 115 | int _jumpCount;
|
---|
| 116 | std::vector<t_frqBias> _bias;
|
---|
| 117 | };
|
---|
| 118 |
|
---|
| 119 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.