Changeset 9600 in ntrip for trunk


Ignore:
Timestamp:
Jan 14, 2022, 5:31:00 PM (2 years ago)
Author:
stuerze
Message:
 
Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r9595 r9600  
    294294        }
    295295      }
    296       if ( satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) {
     296      if ( satObs->isValid(tLC) &&
     297          (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) {
    297298        ++iObs;
    298299        BB[iObs][0] = satObs->xc()[0];
     
    307308    }
    308309    BB = BB.Rows(1,iObs+1);
    309     bancroft(BB, xyzc);
     310    if (bancroft(BB, xyzc) != success) {
     311      return failure;
     312    }
    310313
    311314    xyzc[3] /= t_CST::c;
     
    319322      const t_pppSatObs* satObs = obsVector.at(ii);
    320323      if (satObs->isValid() &&
    321           satObs->prn().system() == 'G' &&
    322324          (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle) ) {
    323325        ColumnVector rr = satObs->xc().Rows(1,3) - xyzc.Rows(1,3);
    324326        double res = rr.NormFrobenius() - satObs->obsValue(tLC)
    325327                   - (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);
    330330          maxResIndex = ii;
    331331        }
    332332      }
    333333    }
    334     if (!std::isnan(maxRes) && maxRes < BLUNDER) {
     334    if (maxRes < BLUNDER) {
    335335      if (print && _numEpoProcessing == 1) {
    336336        LOG.setf(ios::fixed);
     
    594594//
    595595////////////////////////////////////////////////////////////////////////////
    596 void t_pppClient::bancroft(const Matrix& BBpass, ColumnVector& pos) {
     596t_irc t_pppClient::bancroft(const Matrix& BBpass, ColumnVector& pos) {
    597597
    598598  if (pos.Nrows() != 4) {
     
    662662    }
    663663  }
     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;
    664673}
    665674
  • trunk/BNC/src/PPP/pppClient.h

    r9589 r9600  
    4545  const t_pppOptions* opt() const {return _opt;}
    4646
    47   static void bancroft(const Matrix& BBpass, ColumnVector& pos);
     47  static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
    4848
    4949  static t_pppClient* instance();
  • trunk/BNC/src/PPP/pppFilter.cpp

    r9590 r9600  
    801801      t_irc irc = resetAmb(refPrnOld, allObs);
    802802      if (OPT->_obsModelType == OPT->DCMcodeBias) {
    803         if (irc == success) {
    804           addNoiseToIono(sys);
    805         }
     803        if (irc == success) {addNoiseToIono(sys);}
    806804      }
    807805    }
  • trunk/BNC/src/PPP/pppSatObs.cpp

    r9598 r9600  
    142142  bool totOK  = false;
    143143  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  }
    145158  double prange = obsValue(tLC);
    146159  for (int ii = 1; ii <= 10; ii++) {
Note: See TracChangeset for help on using the changeset viewer.