source: ntrip/trunk/BNC/src/PPP/pppSatObs.h@ 9386

Last change on this file since 9386 was 9386, checked in by stuerze, 3 years ago

update regarding PPP

  • Property svn:keywords set to Author Date Id Rev URL;svn:eol-style=native
  • Property svn:mime-type set to text/plain
File size: 4.6 KB
RevLine 
[7237]1#ifndef PPPSATOBS_H
2#define PPPSATOBS_H
3
4#include <string>
5#include <map>
6#include <newmat.h>
7#include "pppInclude.h"
8#include "satObs.h"
9#include "bnctime.h"
10
11namespace BNC_PPP {
12
13class t_pppStation;
14
15class t_pppSatObs {
16 public:
17 t_pppSatObs(const t_satObs& satObs);
18 ~t_pppSatObs();
19 bool isValid() const {return _valid;};
20 bool isValid(t_lc::type tLC) const;
[8905]21 bool isReference() const {return _reference;};
22 void setAsReference() {_reference = true;};
[9386]23 void resetReference() {_reference = false;};
[7237]24 const t_prn& prn() const {return _prn;}
25 const ColumnVector& xc() const {return _xcSat;}
26 const bncTime& time() const {return _time;}
27 t_irc cmpModel(const t_pppStation* station);
28 double obsValue(t_lc::type tLC, bool* valid = 0) const;
29 double cmpValue(t_lc::type tLC) const;
30 double cmpValueForBanc(t_lc::type tLC) const;
31 double rho() const {return _model._rho;}
32 double sagnac() const {return _model._sagnac;}
33 double eleSat() const {return _model._eleSat;}
34 bool modelSet() const {return _model._set;}
35 void printModel() const;
[8905]36 void printObsMinusComputed() const;
[7836]37 void lcCoeff(t_lc::type tLC,
[7237]38 std::map<t_frequency::type, double>& codeCoeff,
[8905]39 std::map<t_frequency::type, double>& phaseCoeff,
40 std::map<t_frequency::type, double>& ionoCoeff) const;
[7237]41 double lambda(t_lc::type tLC) const;
42 double sigma(t_lc::type tLC) const;
43 double maxRes(t_lc::type tLC) const;
44 bool outlier() const {return _outlier;}
45 void setOutlier() {_outlier = true;}
46 void setRes(t_lc::type tLC, double res);
47 double getRes(t_lc::type tLC) const;
[8905]48 void setPseudoObsIono(t_frequency::type freq, double stecRefSat);
[8961]49 void setPseudoObsTropo();
[8905]50 double getIonoCodeDelay(t_frequency::type freq) {return _model._ionoCodeDelay[freq];}
[7237]51
[7836]52 // RINEX
[7237]53 bool slip() const {
54 for (unsigned ii = 1; ii < t_frequency::max; ii++) {
55 if (_obs[ii] && _obs[ii]->_slip) {
56 return true;
57 }
58 }
59 return false;
60 }
61
[7836]62 // RTCM
[7237]63 int slipCounter() const {
64 int cnt = -1;
65 for (unsigned ii = 1; ii < t_frequency::max; ii++) {
66 if (_obs[ii] && _obs[ii]->_slipCounter > cnt) {
67 cnt = _obs[ii]->_slipCounter;
68 }
69 }
70 return cnt;
71 }
72
73 int biasJumpCounter() const {
74 int jmp = -1;
75 for (unsigned ii = 1; ii < t_frequency::max; ii++) {
76 if (_obs[ii] && _obs[ii]->_biasJumpCounter > jmp) {
77 jmp = _obs[ii]->_biasJumpCounter;
78 }
79 }
80 return jmp;
81 }
82
83 private:
84 class t_model {
85 public:
86 t_model() {reset();}
87 ~t_model() {}
88 void reset() {
[8905]89 _set = false;
90 _rho = 0.0;
91 _eleSat = 0.0;
92 _azSat = 0.0;
93 _recClkM = 0.0;
94 _satClkM = 0.0;
95 _sagnac = 0.0;
96 _antEcc = 0.0;
97 _tropo = 0.0;
[8961]98 _tropo0 = 0.0;
[8905]99 _tideEarth = 0.0;
100 _tideOcean = 0.0;
101 _windUp = 0.0;
102 _rel = 0.0;
[7237]103 for (unsigned ii = 0; ii < t_frequency::max; ii++) {
[7250]104 _antPCO[ii] = 0.0;
105 _codeBias[ii] = 0.0;
106 _phaseBias[ii] = 0.0;
107 _ionoCodeDelay[ii] = 0.0;
[7237]108 }
109 }
110 bool _set;
111 double _rho;
112 double _eleSat;
113 double _azSat;
114 double _recClkM;
115 double _satClkM;
116 double _sagnac;
117 double _antEcc;
118 double _tropo;
[8961]119 double _tropo0;
[8905]120 double _tideEarth;
121 double _tideOcean;
[7237]122 double _windUp;
[8619]123 double _rel;
[7237]124 double _antPCO[t_frequency::max];
125 double _codeBias[t_frequency::max];
126 double _phaseBias[t_frequency::max];
[7250]127 double _ionoCodeDelay[t_frequency::max];
[7237]128 };
129
130 void prepareObs(const t_satObs& satObs);
131
132 bool _valid;
[8905]133 bool _reference;
[7237]134 t_frequency::type _fType1;
135 t_frequency::type _fType2;
136 t_prn _prn;
137 bncTime _time;
138 int _channel;
139 t_frqObs* _obs[t_frequency::max];
140 ColumnVector _xcSat;
141 ColumnVector _vvSat;
142 t_model _model;
143 bool _outlier;
144 std::map<t_lc::type, double> _res;
[7250]145 double _signalPropagationTime;
[8905]146 double _stecRefSat;
147 double _stecSat;
[8961]148 double _tropo0;
[7237]149};
150
151}
152
153#endif
Note: See TracBrowser for help on using the repository browser.