Changeset 10031 in ntrip


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

minor changes

Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

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

    r10028 r10031  
    474474    bool epochReProcessing = false;
    475475    _numEpoProcessing = 0;
    476     _historicalRefSats.clear();
     476    if (!_historicalRefSats.isEmpty()) {
     477      _historicalRefSats.clear();
     478    }
    477479
    478480    do {
    479       _numEpoProcessing++;
     481      if ((_numEpoProcessing++) > 30) {
     482        LOG << "t_pppClient::processEpoch:  _numEpoProcessing > 30" << endl;
     483        return finish(failure,12);
     484      }
     485
    480486      if (_obsPool->refSatChanged()) {
    481487        if(_filter->datumTransformation(_refSatMap) != success) {
     
    488494        }
    489495      }
     496
    490497      // Prepare Observations of the Rover
    491498      // ---------------------------------
     
    538545      LOG << "PUT EPOCH t_pppClient::processEpoch " << _epoTimeRover.timestr().c_str() << endl;
    539546#endif
    540      
     547
    541548      // Process Epoch in Filter
    542549      // -----------------------
     
    552559        LOG << "pppClient: _obsPool->refSatChangeRequired() " << endl;
    553560        epochReProcessing = true;
    554 #ifdef BNC_DEBUG_PPP       
     561#ifdef BNC_DEBUG_PPP
    555562        LOG <<  "DELETE EPOCH" << endl;
    556 #endif       
     563#endif
    557564        _obsPool->deleteLastEpoch();
    558565        _filter->restoreState(0);
     
    585592    return finish(failure,11);
    586593  }
    587   return finish(success,12);
     594  return finish(success,0);
    588595}
    589596
  • trunk/BNC/src/PPP/pppClient.h

    r10003 r10031  
    3838  const bncAntex*     antex() const {return _antex;}
    3939  const t_pppStation* staRover() const {return _staRover;}
    40   double              offGlo() const {return _offGlo;}
    41   double              offGal() const {return _offGal;}
    42   double              offBds() const {return _offBds;}
    4340
    4441  std::ostringstream& log() {return *_log;}
     
    7774  bncAntex*                 _antex;
    7875  t_pppFilter*              _filter;
    79   double                    _offGlo;
    80   double                    _offGal;
    81   double                    _offBds;
    8276  std::vector<t_pppSatObs*> _obsRover;
    8377  QMap<char, t_pppRefSat*>  _refSatMap;
  • 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
  • trunk/BNC/src/PPP/pppParlist.cpp

    r10023 r10031  
    506506          (!par->lastObsTime().valid() || (epoTime - par->lastObsTime() > 0.0))) {
    507507#ifdef BNC_DEBUG_PPP
    508 //        LOG << "remove1 " << par->toString() << std::endl;
     508        //LOG << "remove1 " << par->toString() << std::endl;
    509509#endif
    510510        lostSats.append(par->prn());
     
    519519                par->type() == t_pppParam::pBiasG2) && !usedSystems().contains('G')) {
    520520#ifdef BNC_DEBUG_PPP
    521         //LOG << "remove1 " << par->toString() << std::endl;
     521       //LOG << "remove1 " << par->toString() << std::endl;
    522522#endif
    523523        delete par;
     
    529529                par->type() == t_pppParam::pBiasR2) && !usedSystems().contains('R')) {
    530530#ifdef BNC_DEBUG_PPP
    531 //        LOG << "remove1 " << par->toString() << std::endl;
     531        //LOG << "remove1 " << par->toString() << std::endl;
    532532#endif
    533533        delete par;
     
    539539                par->type() == t_pppParam::pBiasE2) && !usedSystems().contains('E')) {
    540540#ifdef BNC_DEBUG_PPP
    541 //        LOG << "remove1 " << par->toString() << std::endl;
     541        //LOG << "remove1 " << par->toString() << std::endl;
    542542#endif
    543543        delete par;
     
    549549                par->type() == t_pppParam::pBiasC2) && !usedSystems().contains('C')) {
    550550#ifdef BNC_DEBUG_PPP
    551 //        LOG << "remove1 " << par->toString() << std::endl;
     551        //LOG << "remove1 " << par->toString() << std::endl;
    552552#endif
    553553        delete par;
     
    566566          (lostSats.contains(par->prn()) || (epoTime - par->lastObsTime() > 0.0))) {
    567567#ifdef BNC_DEBUG_PPP
    568         //LOG << "remove1 " << par->toString() << std::endl;
     568       //LOG << "remove1 " << par->toString() << std::endl;
    569569#endif
    570570        delete par;
     
    741741    else {
    742742#ifdef BNC_DEBUG_PPP
    743 //      LOG << "push_back  parReq " << parReq->toString() << std::endl;
     743      //LOG << "push_back  parReq " << parReq->toString() << std::endl;
    744744#endif
    745745      _params.push_back(parReq);
Note: See TracChangeset for help on using the changeset viewer.