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


Ignore:
Timestamp:
Mar 22, 2023, 10:28:06 PM (13 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r10017 r10018  
    8383  if (OPT->_obsModelType == OPT->DCMcodeBias ||
    8484      OPT->_obsModelType == OPT->DCMphaseBias) {
    85     _parlist.printParams(_epoTime);
     85//    _parlist.printParams(_epoTime);
    8686  }
    8787#endif
     
    100100      }
    101101    }
    102     if (num < OPT->_minObs) {
    103       setNeuNoiseToZero = true;
    104     }
     102//    if (num < OPT->_minObs) {
     103//      setNeuNoiseToZero = true;
     104//    }
    105105  }
    106106  setStateVectorAndVarCovMatrix(xFltOld, QFltOld, setNeuNoiseToZero);
     
    132132        _xFlt = xFltOld;
    133133        _QFlt = QFltOld;
    134         _obsPool->deleteLastEpoch();
    135         restoreState(2);
     134        restoreState(1);
    136135        return failure;
    137136      }
     
    177176        _xFlt = xFltOld;
    178177        _QFlt = QFltOld;
    179         _obsPool->deleteLastEpoch();
    180         restoreState(3);
     178        restoreState(2);
    181179      }
    182180      return failure;
     
    277275    // Check number of observations
    278276    // ----------------------------
    279     if (iObs == -1) {
    280       LOG << " number of observations == " << iObs + 1 << "\n";
     277    if ((iObs +1) < OPT->_minObs) {
     278      LOG << "t_pppFilter::processSystem not enough observations: " << iObs + 1 << "\n";
    281279      if (preProcessing) {
    282280        _obsPool->setRefSatChangeRequired(sys, true);
     
    363361      if (preProcessing) {
    364362        if (obs->prn() == refPrn) {
    365           LOG << epoTimeStr << " Outlier ("
    366               << ((preProcessing) ? "pre-processing) " : "fin-processing) ")
    367               << t_lc::toString(maxOutlierLC) << ' ' << obs->prn().toString()
    368               << ' ' << setw(8) << setprecision(4) << maxOutlier << endl;
    369           _obsPool->setRefSatChangeRequired(sys, true);
    370           break;
    371         } else {
    372           obs->setOutlier();
    373         }
    374       } else {    // fin-processing
    375         LOG << epoTimeStr << " Outlier " << t_lc::toString(maxOutlierLC) << ' '
    376             << obs->prn().toString() << ' ' << setw(8) << setprecision(4)
    377             << maxOutlier << endl;
    378         if (par) {
    379           resetAmb(par->prn(), obsVector, maxOutlierLC, &QSav, &xSav);
     363            LOG << epoTimeStr << " Outlier ("
     364                << ((preProcessing) ? "pre-processing) " : "fin-processing) ")
     365                << t_lc::toString(maxOutlierLC) << ' ' << obs->prn().toString()
     366                << ' ' << setw(8) << setprecision(4) << maxOutlier << endl;
     367            _obsPool->setRefSatChangeRequired(sys, true);
     368            break;
    380369        }
    381370        else {
    382371          obs->setOutlier();
     372        }
     373      } else {    // fin-processing
     374        if (obs->prn() != refPrn) {
     375          LOG << epoTimeStr << " Outlier " << t_lc::toString(maxOutlierLC) << ' '
     376              << obs->prn().toString() << ' ' << setw(8) << setprecision(4)
     377              << maxOutlier << endl;
     378          if (par) {
     379            resetAmb(par->prn(), obsVector, maxOutlierLC, &QSav, &xSav);
     380          }
     381          else {
     382            obs->setOutlier();
     383          }
    383384        }
    384385      }
     
    715716  }
    716717#ifdef BNC_DEBUG_PPP
    717   _parlist.printParams(_epoTime);
     718  //_parlist.printParams(_epoTime);
    718719#endif
    719720
Note: See TracChangeset for help on using the changeset viewer.