Changeset 10015 in ntrip


Ignore:
Timestamp:
Mar 20, 2023, 2:10:04 PM (13 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

    r10006 r10015  
    670670        }
    671671      }
    672 
    673       if (_opt->_refSatRequired) {
    674         if (handleRefSatellites(_obsRover) != success) {
    675           return finish(failure,6);
    676         }
    677         if (_obsPool->refSatChanged()) {
    678           LOG << "t_pppFilter: refSatChanged()" << endl;
    679           epochReProcessing = true;
    680           continue;
    681         }
    682       }
    683 
    684672      // use observations only if satellite code biases are available
    685673      // ------------------------------------------------------------
     
    688676           OPT->_obsModelType == OPT->DCMphaseBias)) {
    689677        useObsWithCodeBiasesOnly(_obsRover);
     678      }
     679
     680      if (_opt->_refSatRequired) {
     681        if (handleRefSatellites(_obsRover) != success) {
     682          return finish(failure,6);
     683        }
     684        if (_obsPool->refSatChanged()) {
     685          LOG << "t_pppFilter: refSatChanged()" << endl;
     686          epochReProcessing = true;
     687          continue;
     688        }
    690689      }
    691690
  • trunk/BNC/src/PPP/pppFilter.cpp

    r10014 r10015  
    6464  _epoTime = epoch->epoTime();
    6565
    66   if (!_firstEpoTime.valid() || !_lastEpoTimeOK.valid()
    67       || (maxSolGap > 0.0 && _epoTime - _lastEpoTimeOK > maxSolGap)) {
     66  if (!_firstEpoTime.valid() ||
     67      !_lastEpoTimeOK.valid()||
     68      (maxSolGap > 0.0 && _epoTime - _lastEpoTimeOK > maxSolGap)) {
    6869    _firstEpoTime = _epoTime;
    6970  }
     
    7273
    7374  const QMap<char, t_pppRefSat*> &refSatMap = epoch->refSatMap();
     75
    7476  const QList<char> &usedSystems = _parlist.usedSystems();
    7577  //--
     
    7880    return failure;
    7981  }
     82  #ifdef BNC_DEBUG_PPP
     83  if (OPT->_obsModelType == OPT->DCMcodeBias ||
     84      OPT->_obsModelType == OPT->DCMphaseBias) {
     85    _parlist.printParams(_epoTime);
     86  }
     87#endif
    8088
    8189  // Status Vector, Variance-Covariance Matrix
     
    102110  bool preProcessing = false;
    103111  if (OPT->_obsModelType == OPT->DCMcodeBias ||
    104   OPT->_obsModelType == OPT->DCMphaseBias) {
     112      OPT->_obsModelType == OPT->DCMphaseBias) {
    105113    preProcessing = true;
    106114    for (int iSys = 0; iSys < usedSystems.size(); iSys++) {
     
    162170    LOG << epoTimeStr << " SATNUM " << sys << ' ' << right << setw(2) << num
    163171        << endl;
    164     if (processSystem(OPT->LCs(sys), obsVector, _refPrn, epoch->pseudoObsIono(),
    165         preProcessing) != success) {
     172    if (processSystem(OPT->LCs(sys), obsVector, _refPrn,
     173        epoch->pseudoObsIono(), preProcessing) != success) {
    166174      LOG << "processSystem !=  success (fin-processing)" << endl;
    167175      if (OPT->_obsModelType == OPT->DCMcodeBias ||
     
    689697  _epoTime = epoch->epoTime();
    690698  LOG.setf(ios::fixed);
    691   LOG << string(_epoTime) << " DATUM TRANSFORMATION " << endl;
     699  LOG << string(_epoTime) << "\nDATUM TRANSFORMATION " << endl;
    692700
    693701  vector<t_pppSatObs*> &allObs = epoch->obsVector();
     
    714722    return failure;
    715723  }
     724#ifdef BNC_DEBUG_PPP
     725  _parlist.printParams(_epoTime);
     726#endif
    716727
    717728  const QList<char> &usedSystems = _parlist.usedSystems();
     
    788799
    789800#ifdef BNC_DEBUG_PPP
    790   LOG << "xFltOld:\n" << xFltOld << endl;
    791   LOG << "xFlt   :\n" << _xFlt   << endl;
     801  //LOG << "xFltOld:\n" << xFltOld << endl;
     802  //LOG << "xFlt   :\n" << _xFlt   << endl;
    792803#endif
    793804
  • trunk/BNC/src/PPP/pppFilter.h

    r10013 r10015  
    3838  void rememberState(int num) {
    3939#ifdef BNC_DEBUG_PPP
    40     LOG << "Remember parameters from epoch before: _parlist_sav = _parlist ("<<  num << ")\n";
     40    LOG << "Remember parameters from last epoch  : _parlist_sav = _parlist ("<<  num << ")\n";
    4141#endif
    4242    _QFlt_sav    = _QFlt;
     
    142142      }
    143143
    144       if (AA.Ncols() > _numPar) {
    145         LOG << "t_pppFilter::prepareAA: AA.Ncols() > _numPar: " << AA.Ncols() << " > " << _numPar << std::endl;
     144      if (AA.Ncols() != _numPar) {
     145        LOG << "t_pppFilter::prepareAA: AA.Ncols() != _numPar: " << AA.Ncols() << " != " << _numPar << "\n RETURN FAILURE" << std::endl;
    146146        return failure;
    147147      }
    148       Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) << AA;
     148      Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) = AA;
    149149      return success;
    150150    }
Note: See TracChangeset for help on using the changeset viewer.