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


Ignore:
Timestamp:
Apr 14, 2023, 11:56:49 AM (13 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r10028 r10031  
    9595  // Status Vector, Variance-Covariance Matrix
    9696  // -----------------------------------------
    97   ColumnVector xFltOld = _xFlt;
     97  ColumnVector    xFltOld = _xFlt;
    9898  SymmetricMatrix QFltOld = _QFlt;
    9999  setStateVectorAndVarCovMatrix(xFltOld, QFltOld, setNeuNoiseToZero);
     
    467467        // -----------------------
    468468        else {
    469           ColumnVector AA(nPar);
    470           for (unsigned iPar = 0; iPar < nPar; iPar++) {
    471             const t_pppParam *par = params[iPar];
    472             AA[iPar] = par->partial(_epoTime, obs, tLC, refPrn);
    473           }
    474           double ll = obs->obsValue(tLC) - obs->cmpValue(tLC)
    475                     - DotProduct(_x0, AA);
    476           double vv = DotProduct(AA, _xFlt) - ll;
    477           if (fabs(vv) > SLIP) {
    478             LOG << epoTimeStr << " cycle slip detected " << t_lc::toString(tLC)
    479                 << ' ' << obs->prn().toString() << ' ' << setw(8)
    480                 << setprecision(4) << vv << endl;
    481             if (preProcessing) {
    482               _obsPool->setRefSatChangeRequired(sys, true);
    483             } else {
     469          if (!preProcessing) {
     470            ColumnVector AA(nPar);
     471            for (unsigned iPar = 0; iPar < nPar; iPar++) {
     472              const t_pppParam *par = params[iPar];
     473              AA[iPar] = par->partial(_epoTime, obs, tLC, refPrn);
     474            }
     475            double ll = obs->obsValue(tLC) - obs->cmpValue(tLC)
     476                      - DotProduct(_x0, AA);
     477            double vv = DotProduct(AA, _xFlt) - ll;
     478            if (fabs(vv) > SLIP) {
     479              LOG << epoTimeStr << " cycle slip detected " << t_lc::toString(tLC)
     480                  << ' ' << obs->prn().toString() << ' ' << setw(8)
     481                  << setprecision(4) << vv << endl;
    484482              resetAmb(obs->prn(), obsVector, tLC);
    485483            }
     
    682680#ifdef BNC_DEBUG_PPP
    683681    LOG << "GET LAST EPOCH" << endl;
    684 #endif   
     682#endif
    685683  if (!epoch) {
    686684    LOG << "t_pppFilter::datumTransformation: !lastEpoch" << endl;
     
    688686  }
    689687  _epoTime = epoch->epoTime();
    690  
     688
    691689  LOG.setf(ios::fixed);
    692690  LOG  << "DATUM TRANSFORMATION in Epoch  "<<  string(_epoTime) << endl;
     
    785783  }
    786784
    787   ColumnVector xFltOld = _xFlt;
     785  ColumnVector    xFltOld = _xFlt;
    788786  SymmetricMatrix QFltOld = _QFlt;
    789787
     
    821819  // =================
    822820  _datumTrafo->switchAA();
    823  
     821
    824822  _obsPool->putEpoch(_epoTime, allObs, pseudoObsIono, refSatMap);
    825 #ifdef BNC_DEBUG_PPP 
     823#ifdef BNC_DEBUG_PPP
    826824  LOG << "PUT EPOCH t_pppFilter::datumTransformation " << _epoTime.timestr().c_str() << endl;
    827825#endif
Note: See TracChangeset for help on using the changeset viewer.