Changeset 9600 in ntrip for trunk/BNC/src/PPP/pppClient.cpp
- Timestamp:
- Jan 14, 2022, 5:31:00 PM (2 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.