Changeset 10028 in ntrip


Ignore:
Timestamp:
Apr 12, 2023, 2:39:30 PM (12 months ago)
Author:
stuerze
Message:

minor changes

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

Legend:

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

    r10023 r10028  
    523523        }
    524524        if (_obsPool->refSatChanged()) {
    525           if (_numEpoProcessing >1 &&
    526               (OPT->_obsModelType == OPT->DCMcodeBias ||
    527                OPT->_obsModelType == OPT->DCMphaseBias)) {
    528             _obsPool->deleteLastEpoch();
    529           }
    530525          epochReProcessing = true;
    531526          continue;
     
    540535      // ------------------------
    541536      _obsPool->putEpoch(_epoTimeRover, _obsRover, _pseudoObsIono, _refSatMap);
    542 
     537#ifdef BNC_DEBUG_PPP
     538      LOG << "PUT EPOCH t_pppClient::processEpoch " << _epoTimeRover.timestr().c_str() << endl;
     539#endif
     540     
    543541      // Process Epoch in Filter
    544542      // -----------------------
    545       if (_filter->processEpoch() != success) {
     543      if (_filter->processEpoch(_numEpoProcessing) != success) {
    546544        LOG << "filter->processEpoch() != success" << endl;
    547545        return finish(failure,7);
     
    554552        LOG << "pppClient: _obsPool->refSatChangeRequired() " << endl;
    555553        epochReProcessing = true;
     554#ifdef BNC_DEBUG_PPP       
     555        LOG <<  "DELETE EPOCH" << endl;
     556#endif       
     557        _obsPool->deleteLastEpoch();
    556558        _filter->restoreState(0);
    557559        setHistoricalRefSats();
  • trunk/BNC/src/PPP/pppFilter.cpp

    r10022 r10028  
    4848// Process Single Epoch
    4949////////////////////////////////////////////////////////////////////////////
    50 t_irc t_pppFilter::processEpoch() {
     50t_irc t_pppFilter::processEpoch(int num) {
    5151  _numSat = 0;
    5252  const double maxSolGap = 60.0;
     53  bool setNeuNoiseToZero = false;
     54
     55  if (num > 1) {
     56    setNeuNoiseToZero = true;
     57  }
    5358
    5459  // Vector of all Observations
     
    8085    return failure;
    8186  }
    82   #ifdef BNC_DEBUG_PPP
     87
     88#ifdef BNC_DEBUG_PPP
    8389  if (OPT->_obsModelType == OPT->DCMcodeBias ||
    8490      OPT->_obsModelType == OPT->DCMphaseBias) {
     
    9197  ColumnVector xFltOld = _xFlt;
    9298  SymmetricMatrix QFltOld = _QFlt;
    93   bool setNeuNoiseToZero = false;
    94   for (int iSys = 0; iSys < usedSystems.size(); iSys++) {
    95     char sys = usedSystems[iSys];
    96     int num = 0;
    97     for (unsigned jj = 0; jj < allObs.size(); jj++) {
    98       if (allObs[jj]->prn().system() == sys) {
    99         ++num;
    100       }
    101     }
    102 //    if (num < OPT->_minObs) {
    103 //      setNeuNoiseToZero = true;
    104 //    }
    105   }
    10699  setStateVectorAndVarCovMatrix(xFltOld, QFltOld, setNeuNoiseToZero);
    107100
     
    687680  // get last epoch
    688681  t_pppObsPool::t_epoch *epoch = _obsPool->lastEpoch();
     682#ifdef BNC_DEBUG_PPP
     683    LOG << "GET LAST EPOCH" << endl;
     684#endif   
    689685  if (!epoch) {
    690686    LOG << "t_pppFilter::datumTransformation: !lastEpoch" << endl;
     
    692688  }
    693689  _epoTime = epoch->epoTime();
     690 
    694691  LOG.setf(ios::fixed);
    695   LOG << string(_epoTime) << "\nDATUM TRANSFORMATION " << endl;
     692  LOG  << "DATUM TRANSFORMATION in Epoch  "<<  string(_epoTime) << endl;
    696693
    697694  vector<t_pppSatObs*> &allObs = epoch->obsVector();
     
    795792
    796793#ifdef BNC_DEBUG_PPP
    797   //LOG << "xFltOld:\n" << xFltOld << endl;
    798   //LOG << "xFlt   :\n" << _xFlt   << endl;
     794//  LOG << "xFltOld:\n" << xFltOld << endl;
     795//  LOG << "xFlt   :\n" << _xFlt   << endl;
    799796#endif
    800797
     
    824821  // =================
    825822  _datumTrafo->switchAA();
    826 
     823 
    827824  _obsPool->putEpoch(_epoTime, allObs, pseudoObsIono, refSatMap);
     825#ifdef BNC_DEBUG_PPP 
     826  LOG << "PUT EPOCH t_pppFilter::datumTransformation " << _epoTime.timestr().c_str() << endl;
     827#endif
    828828
    829829  return success;
  • trunk/BNC/src/PPP/pppFilter.h

    r10018 r10028  
    2121  ~t_pppFilter();
    2222
    23   t_irc processEpoch();
     23  t_irc processEpoch(int num);
    2424
    2525  const ColumnVector&    x() const {return _xFlt;}
Note: See TracChangeset for help on using the changeset viewer.