Changeset 11196 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 11, 2026, 8:57:49 AM (3 weeks ago)
- Location:
- trunk/BNC/src
- Files:
-
- 9 edited
-
PPP/ambres.cpp (modified) (2 diffs)
-
PPP/ambres.h (modified) (1 diff)
-
PPP/pppClient.cpp (modified) (2 diffs)
-
PPP/pppFilter.cpp (modified) (4 diffs)
-
PPP/pppFilter.h (modified) (3 diffs)
-
PPP/pppSatObs.h (modified) (1 diff)
-
bnchelp.html (modified) (5 diffs)
-
pppInclude.h (modified) (1 diff)
-
pppRun.cpp (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;} -
trunk/BNC/src/bnchelp.html
r11192 r11196 2829 2829 <ul> 2830 2830 <li>'ppp_position': 'x', 'y', 'z', 'dn', 'de', 'du', 'trp0', 'trp', 'trp_stdev', 'num_sat', 2831 'hdop', 'fixed' (true/false), 'fix_percent'; 'ppp_epoch_failed' (warning) if no solution was computed,</li> 2831 'hdop', 'fixed' (true/false), 'fix_percent', 'res_rms_code' and 'res_rms_phase' (RMS of the post-fit code and 2832 phase residuals of the epoch, 0 if there is none of that kind); 'ppp_epoch_failed' (warning) if no solution was computed,</li> 2832 2833 <li>'stream_format': 'decoder' (RTCM2, RTCM3, ZERO, ZERO2FILE, RTNET) and 'format' (format entry of the stream),</li> 2833 2834 <li>'stream_timeout' (warning): data timeout, BNC reconnects,</li> … … 2856 2857 <pre><p style="font-family:Monospace"> 2857 2858 {"time":"2025-11-17T13:48:51.000Z","level":"info","component":"stream","event":"stream_format","mp":"BCEP00BKG0","decoder":"RTCM3","format":"RTCM_3.3","msg":"Get data in RTCM 3.x format","v":1} 2858 {"time":"2025-11-17T13:49:40.000Z","epoch":"2025-11-17T13:49:10.000","level":"info","component":"ppp","event":"ppp_position","mp":"WTZR00DEU0","x":4075580.2172,"y":931854.1555,"z":4801568.3403,"dn":0.0000,"de":0.0000,"du":0.0001,"trp0":2.1833,"trp":0.0019,"trp_stdev":0.0993,"num_sat":17,"hdop":0.59,"fixed":false,"fix_percent":0,"msg":"PPP position","v":1} 2859 {"time":"2025-11-17T13:49:40.000Z","epoch":"2025-11-17T13:49:10.000","level":"info","component":"ppp","event":"ppp_position","mp":"WTZR00DEU0","x":4075580.2172,"y":931854.1555,"z":4801568.3403,"dn":0.0000,"de":0.0000,"du":0.0001,"trp0":2.1833,"trp":0.0019,"trp_stdev":0.0993,"num_sat":17,"hdop":0.59,"fixed":false,"fix_percent":0,"res_rms_code":0.4071,"res_rms_phase":0.0042,"msg":"PPP position","v":1} 2859 2860 </pre> 2860 2861 </p> … … 2864 2865 <pre><p style="font-family:Monospace"> 2865 2866 time=2025-11-17T13:48:51.000Z level=info component=stream event=stream_format mp=BCEP00BKG0 decoder=RTCM3 format=RTCM_3.3 msg="Get data in RTCM 3.x format" v=1 2866 time=2025-11-17T13:49:40.000Z epoch=2025-11-17T13:49:10.000 level=info component=ppp event=ppp_position mp=WTZR00DEU0 x=4075580.2172 y=931854.1555 z=4801568.3403 dn=0.0000 de=0.0000 du=0.0001 trp0=2.1833 trp=0.0019 trp_stdev=0.0993 num_sat=17 hdop=0.59 fixed=false fix_percent=0 msg="PPP position" v=1 2867 time=2025-11-17T13:49:40.000Z epoch=2025-11-17T13:49:10.000 level=info component=ppp event=ppp_position mp=WTZR00DEU0 x=4075580.2172 y=931854.1555 z=4801568.3403 dn=0.0000 de=0.0000 du=0.0001 trp0=2.1833 trp=0.0019 trp_stdev=0.0993 num_sat=17 hdop=0.59 fixed=false fix_percent=0 res_rms_code=0.4071 res_rms_phase=0.0042 msg="PPP position" v=1 2867 2868 </pre> 2868 2869 </p> … … 7038 7039 2026-07-28_15:12:14.000 RES lC6 C36 0.0020 7039 7040 2026-07-28_15:12:14.000 RES lC6 C37 -0.0009 7041 2026-07-28_15:12:14.000 RMS code 0.1615 (68) phase 0.0034 (68) 7040 7042 2026-07-28_15:12:14.000 Ambiguity Resolution (BIE) 7041 7043 Group lC2 … … 8002 8004 <li>Ambiguities are grouped per system/LC into zero-difference sets if minimum number of tracked epochs (see <a 8003 8005 href="#ppparmin">Min # Epo</a>) and the minimum elevation (see <a href=#pppmineleva>Minimum Elevation</a>) is 8004 exceeded.</li> 8006 exceeded, the satellite is observed in the current epoch (an ambiguity parameter is kept for 60 s after the last 8007 observation).</li> 8005 8008 <li>One reference ambiguity per group is hard-constrained to its rounded value with a tiny σ (sigCon = 1e-4 cycles, 8006 8009 turning the rest into single-differences (SD).</li> -
trunk/BNC/src/pppInclude.h
r10938 r11196 41 41 std::string _log; 42 42 double _fixRatio; 43 double _resRmsCode; // RMS of the code post-fit residuals [m] 44 double _resRmsPhase; // RMS of the phase post-fit residuals [m] 43 45 bool _error; 44 46 }; -
trunk/BNC/src/pppRun.cpp
r11189 r11196 487 487 .add("hdop", output._hDop, 2) 488 488 .add("fixed", output._fixRatio > 0.0) 489 .add("fix_percent", int(100*output._fixRatio)); 489 .add("fix_percent", int(100*output._fixRatio)) 490 .add("res_rms_code", output._resRmsCode, 4) 491 .add("res_rms_phase", output._resRmsPhase, 4); 490 492 emit newLogRecord(rec, true); 491 493 }
Note:
See TracChangeset
for help on using the changeset viewer.
