Changeset 9600 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Jan 14, 2022, 5:31:00 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r9595 r9600 294 294 } 295 295 } 296 if ( satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) { 296 if ( satObs->isValid(tLC) && 297 (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) { 297 298 ++iObs; 298 299 BB[iObs][0] = satObs->xc()[0]; … … 307 308 } 308 309 BB = BB.Rows(1,iObs+1); 309 bancroft(BB, xyzc); 310 if (bancroft(BB, xyzc) != success) { 311 return failure; 312 } 310 313 311 314 xyzc[3] /= t_CST::c; … … 319 322 const t_pppSatObs* satObs = obsVector.at(ii); 320 323 if (satObs->isValid() && 321 satObs->prn().system() == 'G' &&322 324 (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) { 323 325 ColumnVector rr = satObs->xc().Rows(1,3) - xyzc.Rows(1,3); 324 326 double res = rr.NormFrobenius() - satObs->obsValue(tLC) 325 327 - (satObs->xc()[3] - xyzc[3]) * t_CST::c; 326 if (std::isnan(res) || fabs(res) > maxRes) { 327 std::isnan(res) ? 328 maxRes = res : 329 maxRes = fabs(res); 328 if (fabs(res) > maxRes) { 329 maxRes = fabs(res); 330 330 maxResIndex = ii; 331 331 } 332 332 } 333 333 } 334 if ( !std::isnan(maxRes) &&maxRes < BLUNDER) {334 if (maxRes < BLUNDER) { 335 335 if (print && _numEpoProcessing == 1) { 336 336 LOG.setf(ios::fixed); … … 594 594 // 595 595 //////////////////////////////////////////////////////////////////////////// 596 voidt_pppClient::bancroft(const Matrix& BBpass, ColumnVector& pos) {596 t_irc t_pppClient::bancroft(const Matrix& BBpass, ColumnVector& pos) { 597 597 598 598 if (pos.Nrows() != 4) { … … 662 662 } 663 663 } 664 if (pos.size() != 4 || 665 std::isnan(pos(1)) || 666 std::isnan(pos(2)) || 667 std::isnan(pos(3)) || 668 std::isnan(pos(4))) { 669 return failure; 670 } 671 672 return success; 664 673 } 665 674 -
trunk/BNC/src/PPP/pppClient.h
r9589 r9600 45 45 const t_pppOptions* opt() const {return _opt;} 46 46 47 static voidbancroft(const Matrix& BBpass, ColumnVector& pos);47 static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos); 48 48 49 49 static t_pppClient* instance(); -
trunk/BNC/src/PPP/pppFilter.cpp
r9590 r9600 801 801 t_irc irc = resetAmb(refPrnOld, allObs); 802 802 if (OPT->_obsModelType == OPT->DCMcodeBias) { 803 if (irc == success) { 804 addNoiseToIono(sys); 805 } 803 if (irc == success) {addNoiseToIono(sys);} 806 804 } 807 805 } -
trunk/BNC/src/PPP/pppSatObs.cpp
r9598 r9600 142 142 bool totOK = false; 143 143 ColumnVector satPosOld(6); satPosOld = 0.0; 144 t_lc::type tLC = isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1; 144 t_lc::type tLC = t_lc::dummy; 145 if (isValid(t_lc::cIF)) { 146 tLC = t_lc::cIF; 147 } 148 if (tLC == t_lc::dummy && isValid(t_lc::c1)) { 149 tLC = t_lc::c1; 150 } 151 if (tLC == t_lc::dummy && isValid(t_lc::c2)) { 152 tLC = t_lc::c2; 153 } 154 if (tLC == t_lc::dummy) { 155 _valid = false; 156 return; 157 } 145 158 double prange = obsValue(tLC); 146 159 for (int ii = 1; ii <= 10; ii++) {
Note:
See TracChangeset
for help on using the changeset viewer.