Changeset 5830 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 6, 2014, 2:43:05 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r5829 r5830 63 63 _outlier = false; 64 64 for (unsigned ii = 0; ii < pppSatObs._obs.size(); ii++) { 65 const t_frqObs* obs = pppSatObs._obs[ii]; 66 t_obsType obsType = string(obs->_rnxType2ch).substr(0,2); 67 _allObs[obsType] = new t_frqObs(*obs); 65 _allObs.push_back(new t_frqObs(*pppSatObs._obs[ii])); 68 66 } 69 67 prepareObs(); … … 73 71 //////////////////////////////////////////////////////////////////////////// 74 72 t_pppSatObs::~t_pppSatObs() { 75 map<t_obsType, t_frqObs*>::const_iterator it; 76 for (it = _allObs.begin(); it != _allObs.end(); it++) { 77 delete it->second; 73 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 74 delete _allObs[ii]; 78 75 } 79 76 } … … 93 90 const string preferredAttrib = "CWP"; 94 91 for (unsigned iPref = 0; iPref < preferredAttrib.length(); iPref++) { 95 t_obsType obsType1 = "1?"; 96 obsType1[1] = preferredAttrib[iPref]; 97 if (_validObs1 == 0 && _allObs.find(obsType1) != _allObs.end()) { 98 t_frqObs* obs = _allObs[obsType1]; 99 if (obs->_codeValid && obs->_phaseValid) { 100 _validObs1 = obs; 92 string obsType1 = "1?"; obsType1[1] = preferredAttrib[iPref]; 93 if (_validObs1 == 0) { 94 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 95 t_frqObs* obs = _allObs[ii]; 96 if (obs->_rnxType2ch == obsType1 && obs->_codeValid && obs->_phaseValid) { 97 _validObs1 = obs; 98 } 101 99 } 102 100 } 103 101 if (dualFreq) { 104 t_obsType obsType2 = "2?"; 105 obsType2[1] = preferredAttrib[iPref]; 106 if (_validObs2 == 0 && _allObs.find(obsType2) != _allObs.end()) { 107 t_frqObs* obs = _allObs[obsType2]; 108 if (obs->_codeValid && obs->_phaseValid) { 109 _validObs2 = obs; 102 string obsType2 = "2?"; obsType2[1] = preferredAttrib[iPref]; 103 if (_validObs2 == 0) { 104 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 105 t_frqObs* obs = _allObs[ii]; 106 if (obs->_rnxType2ch == obsType2 && obs->_codeValid && obs->_phaseValid) { 107 _validObs2 = obs; 108 } 110 109 } 111 110 } -
trunk/BNC/src/PPP/pppSatObs.h
r5823 r5830 9 9 10 10 namespace BNC_PPP { 11 12 typedef std::string t_obsType;13 11 14 12 class t_pppStation; … … 44 42 45 43 bool slip() const { 46 std::map<t_obsType, t_frqObs*>::const_iterator it; 47 for (it = _allObs.begin(); it != _allObs.end(); it++) { 48 if (it->second->_slip) { 44 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 45 if (_allObs[ii]->_slip) { 49 46 return true; 50 47 } … … 55 52 int slipCounter() const { 56 53 int cnt = -1; 57 std::map<t_obsType, t_frqObs*>::const_iterator it; 58 for (it = _allObs.begin(); it != _allObs.end(); it++) { 59 if (it->second->_slipCounter > cnt) { 60 cnt = it->second->_slipCounter; 54 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 55 if (_allObs[ii]->_slipCounter > cnt) { 56 cnt = _allObs[ii]->_slipCounter; 61 57 } 62 58 } … … 66 62 int biasJumpCounter() const { 67 63 int jmp = -1; 68 std::map<t_obsType, t_frqObs*>::const_iterator it; 69 for (it = _allObs.begin(); it != _allObs.end(); it++) { 70 if (it->second->_biasJumpCounter > jmp) { 71 jmp = it->second->_biasJumpCounter; 64 for (unsigned ii = 0; ii < _allObs.size(); ii++) { 65 if (_allObs[ii]->_biasJumpCounter > jmp) { 66 jmp = _allObs[ii]->_biasJumpCounter; 72 67 } 73 68 } … … 118 113 }; 119 114 120 t_prn 121 bncTime 122 int 123 std:: map<t_obsType, t_frqObs*>_allObs;124 bool 125 t_frqObs* 126 t_frqObs* 127 double 128 double 129 double 130 double 131 double 132 double 133 ColumnVector 134 ColumnVector 135 t_model 136 bool 137 std::map<t_lc::type, double> 115 t_prn _prn; 116 bncTime _time; 117 int _channel; 118 std::vector<t_frqObs*> _allObs; 119 bool _valid; 120 t_frqObs* _validObs1; 121 t_frqObs* _validObs2; 122 double _f1; 123 double _f2; 124 double _rawC1; 125 double _rawC2; 126 double _rawL1; 127 double _rawL2; 128 ColumnVector _xcSat; 129 ColumnVector _vvSat; 130 t_model _model; 131 bool _outlier; 132 std::map<t_lc::type, double> _res; 138 133 }; 139 134
Note:
See TracChangeset
for help on using the changeset viewer.