Changeset 9556 in ntrip for trunk/BNC/src/PPP/pppFilter.cpp


Ignore:
Timestamp:
Nov 30, 2021, 1:09:49 PM (2 years ago)
Author:
stuerze
Message:

update regarding PPP

File:
1 edited

Legend:

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

    r9548 r9556  
    260260        }
    261261      }
     262    }
     263
     264    // Check number of observations
     265    // ----------------------------
     266    if (iObs == -1) {LOG << "iObs == -1\n";
     267      return failure;
     268    }
     269    if (OPT->_obsModelType == OPT->DCMcodeBias  ||
     270        OPT->_obsModelType == OPT->DCMphaseBias ||
     271        OPT->_pseudoObsIono) {
     272        double numSat = floor(iObs/2.0);
     273        if (numSat < 2.0) {
     274          LOG << sys <<  ": numsat " << numSat << " but at least 2 satellites would be required" << endl;
     275          return failure;
     276        }
    262277    }
    263278
     
    294309    }
    295310
    296     // Check number of observations, truncate matrices
    297     // -----------------------------------------------
    298     if (iObs == -1) {LOG << "iObs == -1\n";
    299       return failure;
    300     }
     311    // Truncate matrices
     312    // -----------------
    301313    AA = AA.Rows(1, iObs+1);
    302314    ll = ll.Rows(1, iObs+1);
     
    330342      t_pppSatObs* obs = usedObs[maxOutlierIndex];
    331343      t_pppParam* par = 0;
    332       LOG << epoTimeStr << " Outlier ("
    333           << ((preProcessing) ? "pre-processing) " : "fin-processing) ") << t_lc::toString(maxOutlierLC) << ' '
    334           << obs->prn().toString()                        << ' '
    335           << setw(8) << setprecision(4) << maxOutlier << endl;
    336344      for (unsigned iPar = 0; iPar < nPar; iPar++) {
    337345        t_pppParam* hlp = params[iPar];
     
    348356              t_lc::toString(maxOutlierLC) == "l2") ) {
    349357           _obsPool->setRefSatChangeRequired(sys, true);
     358           LOG << epoTimeStr << " Outlier ("
     359               << ((preProcessing) ? "pre-processing) " : "fin-processing) ") << t_lc::toString(maxOutlierLC) << ' '
     360               << obs->prn().toString()  << ' ' << setw(8) << setprecision(4) << maxOutlier << endl;
    350361           break;
    351362         }
     
    353364          if (par) {
    354365            par->setAmbResetCandidate();
    355             obs->setOutlier();
    356           }
    357           else {
    358             obs->setOutlier();
    359366          }
    360367        }
    361368      }
    362369      else {// fin-processing
     370        LOG << epoTimeStr << " Outlier " << t_lc::toString(maxOutlierLC) << ' '
     371            << obs->prn().toString()  << ' ' << setw(8) << setprecision(4) << maxOutlier << endl;
    363372        if (par) {
    364373          if (par->ambResetCandidate()) {
Note: See TracChangeset for help on using the changeset viewer.