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


Ignore:
Timestamp:
Apr 14, 2022, 9:43:06 PM (2 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9670 r9699  
    164164      LOG << "processSystem !=  success (fin-processing)" << endl;
    165165      if (OPT->_obsModelType == OPT->DCMcodeBias ||
    166       OPT->_obsModelType == OPT->DCMphaseBias) {
     166          OPT->_obsModelType == OPT->DCMphaseBias) {
    167167        _xFlt = xFltOld;
    168168        _QFlt = QFltOld;
     
    267267    // Check number of observations
    268268    // ----------------------------
    269     if (iObs == -1) {
    270       LOG << " number of observations == -1\n";
    271       return failure;
     269
     270    if (OPT->_obsModelType == OPT->DCMcodeBias ||
     271        OPT->_obsModelType == OPT->DCMphaseBias) {
     272      if (nSat < 2.0) {
     273        LOG << " number of observations < 2\n";
     274        return failure;
     275      }
     276    }
     277    else {
     278      if (iObs == -1) {
     279            LOG << " number of observations == -1\n";
     280            return failure;
     281      }
    272282    }
    273283
     
    348358        // for refSats no ambiguity parameter exists
    349359        if ((obs->prn() == refPrn)
    350             && (t_lc::toString(maxOutlierLC) == "l1"
    351                 || t_lc::toString(maxOutlierLC) == "l2")) {
     360            && (t_lc::toString(maxOutlierLC) == "l1" ||
     361                t_lc::toString(maxOutlierLC) == "l2")) {
    352362          _obsPool->setRefSatChangeRequired(sys, true);
    353363          LOG << epoTimeStr << " Outlier ("
     
    381391              obs->setRes(tLC, vv[ii]);
    382392              LOG << epoTimeStr << " RES " << left << setw(3)
    383                   << t_lc::toString(tLC) << right << ' ';
    384               if (t_lc::toString(tLC) == "Tz0") {
    385                 LOG << sys << "  ";
    386               } else {
    387                 LOG << obs->prn().toString();
    388               }
     393                  << t_lc::toString(tLC) << right << ' '
     394                  << obs->prn().toString();
    389395              LOG << setw(9) << setprecision(4) << vv[ii] << endl;
    390396            }
Note: See TracChangeset for help on using the changeset viewer.