Changeset 8453 in ntrip for trunk


Ignore:
Timestamp:
Aug 15, 2018, 10:03:31 AM (6 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r8451 r8453  
    254254        ColumnVector rr = satObs->xc().Rows(1,3) - xyzc.Rows(1,3);
    255255        double res = rr.norm_Frobenius() - satObs->obsValue(tLC)
    256           - (satObs->xc()[3] - xyzc[3]) * t_CST::c;
    257         if (fabs(res) > maxRes || std::isnan(res)) {
     256                   - (satObs->xc()[3] - xyzc[3]) * t_CST::c;
     257        if (std::isnan(res) || fabs(res) > maxRes) {
     258          std::isnan(res) ?
     259          maxRes      = res :
    258260          maxRes      = fabs(res);
    259261          maxResIndex = ii;
     
    261263      }
    262264    }
    263     if (maxRes < BLUNDER) {
     265    if (!std::isnan(maxRes) && maxRes < BLUNDER) {
    264266      if (print) {
    265267        LOG.setf(ios::fixed);
Note: See TracChangeset for help on using the changeset viewer.