Changeset 5858 in ntrip


Ignore:
Timestamp:
Aug 7, 2014, 2:06:50 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5857 r5858  
    285285      double   maxRes      = 0.0;
    286286      int      maxResIndex = -1;
     287      t_prn    maxResPrn;
    287288      unsigned nObs        = 0;
    288289      for (unsigned ii = 0; ii < obsVector.size(); ii++) {
     
    293294          ++nObs;
    294295          offGG += ll;
    295           if (fabs(ll) > maxRes) {
    296             maxRes      = fabs(ll);
     296          if (fabs(ll) > fabs(maxRes)) {
     297            maxRes      = ll;
    297298            maxResIndex = ii;
     299            maxResPrn   = satObs->prn();
    298300          }
    299301        }
     
    307309      }
    308310
    309       if (maxRes > 1000.0) {
     311      if (fabs(maxRes) > 1000.0) {
     312        LOG << "t_pppClient::cmpOffGG outlier " << maxResPrn.toString() << " " << maxRes << endl;
    310313        obsVector.erase(obsVector.begin() + maxResIndex);
    311314      }
Note: See TracChangeset for help on using the changeset viewer.