Changeset 11196 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Nov 11, 2026, 8:57:49 AM (5 days ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 6 edited
-
ambres.cpp (modified) (2 diffs)
-
ambres.h (modified) (1 diff)
-
pppClient.cpp (modified) (2 diffs)
-
pppFilter.cpp (modified) (4 diffs)
-
pppFilter.h (modified) (3 diffs)
-
pppSatObs.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/ambres.cpp
r11195 r11196 27 27 // 28 28 ////////////////////////////////////////////////////////////////////////////////////////// 29 bool AmbRes::isResolvable(const t_pppParam* amb) { 30 if ( amb->ambNumEpo() >= OPT->_ar._minNumEpo && amb->ambEleSat() >= OPT->_ar._minEle) { 31 return true; 32 } 33 else { 29 bool AmbRes::isResolvable(const bncTime& epoTime, const t_pppParam* amb, std::ostream& msg) { 30 31 // Satellite not observed in the current epoch (parameter kept up to 60 s) 32 // ----------------------------------------------------------------------- 33 if (amb->lastObsTime() != epoTime) { 34 msg << " " << amb->prn().toString() << ' ' << amb->LC().toString() 35 << " not observed, not resolvable" << endl; 34 36 return false; 35 37 } 38 39 if ( amb->ambNumEpo() < OPT->_ar._minNumEpo || amb->ambEleSat() < OPT->_ar._minEle) { 40 return false; 41 } 42 return true; 36 43 } 37 44 … … 113 120 for (const auto& par : params) { 114 121 if (par->type() == t_pppParam::amb && par->prn().system() == system) { 115 if (isResolvable( par)) {122 if (isResolvable(epoTime, par, msg)) { 116 123 addToGroup(par); 117 124 } -
trunk/BNC/src/PPP/ambres.h
r11195 r11196 50 50 }; 51 51 52 static bool isResolvable(const t_pppParam* amb); 52 static bool isResolvable(const bncTime& epoTime, const t_pppParam* amb, std::ostream& msg); 53 53 static bool isFixable(double xx, double sigma, bool* checked = 0); 54 54 -
trunk/BNC/src/PPP/pppClient.cpp
r11123 r11196 406 406 _output->_numSat = 0; 407 407 _output->_hDop = 0.0; 408 _output->_resRmsCode = 0.0; 409 _output->_resRmsPhase = 0.0; 408 410 _output->_error = false; 409 411 } … … 446 448 _output->_numSat = _filter->numSat(); 447 449 _output->_hDop = _filter->HDOP(); 450 _output->_resRmsCode = _filter->resRmsCode(); 451 _output->_resRmsPhase = _filter->resRmsPhase(); 448 452 _output->_error = false; 449 453 } -
trunk/BNC/src/PPP/pppFilter.cpp
r11195 r11196 37 37 //////////////////////////////////////////////////////////////////////////// 38 38 t_pppFilter::t_pppFilter() { 39 _parlist = 0; 39 _parlist = 0; 40 _numSat = 0; 41 _fixRatio = 0.0; 42 _resRmsCode = 0.0; 43 _resRmsPhase = 0.0; 40 44 } 41 45 … … 50 54 t_irc t_pppFilter::processEpoch(t_pppObsPool* obsPool) { 51 55 52 _numSat = 0; 56 _numSat = 0; 57 _resRmsCode = 0.0; 58 _resRmsPhase = 0.0; 53 59 const double maxSolGap = 60.0; 54 60 bool setNeuNoiseToZero = false; … … 112 118 // ---------------------- 113 119 cmpDOP(allObs); 120 121 // Post-fit Residuals: RMS per epoch 122 // --------------------------------- 123 cmpResiduals(allObs); 114 124 115 125 // Ambiguity Resolution … … 135 145 136 146 return success; 147 } 148 149 // RMS of the post-fit residuals of the epoch (set in processSystem) 150 //////////////////////////////////////////////////////////////////////////// 151 void t_pppFilter::cmpResiduals(const vector<t_pppSatObs*>& allObs) { 152 153 // RMS of code and phase residuals 154 // ------------------------------- 155 double sumCode = 0.0; 156 double sumPhase = 0.0; 157 unsigned numCode = 0; 158 unsigned numPhase = 0; 159 for (const t_pppSatObs* obs : allObs) { 160 const vector<t_lc>& LCs = OPT->LCs(obs->prn().system()); 161 for (const t_lc& LC : LCs) { 162 if (!obs->hasRes(LC)) { 163 continue; 164 } 165 double res = obs->getRes(LC); 166 if (LC._type == t_lc::code || LC._type == t_lc::codeIF) { 167 sumCode += res * res; 168 numCode += 1; 169 } 170 else if (LC._type == t_lc::phase || LC._type == t_lc::phaseIF) { 171 sumPhase += res * res; 172 numPhase += 1; 173 } 174 } 175 } 176 _resRmsCode = (numCode > 0) ? sqrt(sumCode / numCode) : 0.0; 177 _resRmsPhase = (numPhase > 0) ? sqrt(sumPhase / numPhase) : 0.0; 178 179 LOG << string(_epoTime) << " RMS code " 180 << setw(8) << setprecision(4) << _resRmsCode << " (" << numCode << ") phase " 181 << setw(8) << setprecision(4) << _resRmsPhase << " (" << numPhase << ")" << endl; 137 182 } 138 183 -
trunk/BNC/src/PPP/pppFilter.h
r11051 r11196 31 31 double GDOP() const {return _dop.G;} 32 32 double fixRatio() const {return _fixRatio;} 33 double resRmsCode() const {return _resRmsCode;} 34 double resRmsPhase() const {return _resRmsPhase;} 33 35 double trp() const { 34 36 const std::vector<t_pppParam*>& par = _parlist->params(); … … 74 76 }; 75 77 78 void cmpResiduals(const std::vector<t_pppSatObs*>& allObs); 76 79 t_irc processSystem(const std::vector<t_lc>& LCs, 77 80 const std::vector<t_pppSatObs*>& obsVector, … … 105 108 bncTime _lastEpoTimeOK; 106 109 double _fixRatio; 110 double _resRmsCode; 111 double _resRmsPhase; 107 112 }; 108 113 -
trunk/BNC/src/PPP/pppSatObs.h
r11041 r11196 48 48 void setRes(t_lc LC, double res); 49 49 double getRes(t_lc LC) const; 50 bool hasRes(t_lc LC) const {return _res.find(LC) != _res.end();} 50 51 bool setPseudoObsIono(t_frequency::type freq, double stecRefSat); 51 52 void resetGIM() {_stecSat = 0.0;}
Note:
See TracChangeset
for help on using the changeset viewer.
