Changeset 10259 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Nov 27, 2023, 3:58:48 PM (14 months ago)
Author:
stuerze
Message:

changes regarding PPP

Location:
trunk/BNC/src
Files:
6 edited

Legend:

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

    r10256 r10259  
    4949//////////////////////////////////////////////////////////////////////////////
    5050t_pppClient::t_pppClient(const t_pppOptions* opt) {
     51  _running = true;
    5152  _output   = 0;
    5253  _opt      = new t_pppOptions(*opt);
     
    7576//////////////////////////////////////////////////////////////////////////////
    7677t_pppClient::~t_pppClient() {
     78  _running = false;
    7779  delete _log;
    7880  delete _opt;
     
    279281  }
    280282
    281   while (true) {
     283  while (_running) {
    282284    Matrix BB(numBancroft, 4);
    283285    int iObs = -1;
     
    319321    // Check Blunders
    320322    // --------------
    321     const double BLUNDER = 200.0;
     323    const double BLUNDER = 100.0;
    322324    double   maxRes      = 0.0;
    323325    unsigned maxResIndex = 0;
     
    402404        offGlo = 0.0;
    403405      }
    404       if (fabs(maxRes) > OPT->_aprSigClkOff) {
    405         LOG << "t_pppClient::cmpOffGR outlier " << maxResPrn.toString() << " " << maxRes << endl;
     406      if (fabs(maxRes) > 100.0) {
     407        LOG << "t_pppClient::cmpOffGlo outlier " << maxResPrn.toString() << " " << maxRes << endl;
    406408        delete obsVector.at(maxResIndex);
    407409        obsVector.erase(obsVector.begin() + maxResIndex);
     
    455457      }
    456458
    457       if (fabs(maxRes) > OPT->_aprSigClkOff) {
    458         LOG << "t_pppClient::cmpOffGE outlier " << maxResPrn.toString() << " " << maxRes << endl;
     459      if (fabs(maxRes) > 100.0) {
     460        LOG << "t_pppClient::cmpOffGal outlier " << maxResPrn.toString() << " " << maxRes << endl;
    459461        delete obsVector.at(maxResIndex);
    460462        obsVector.erase(obsVector.begin() + maxResIndex);
     
    509511      }
    510512
    511       if (fabs(maxRes) > OPT->_aprSigClkOff) {
    512         LOG << "t_pppClient::cmpOffGC outlier " << maxResPrn.toString() << " " << maxRes << endl;
     513      if (fabs(maxRes) > 100.0) {
     514        LOG << "t_pppClient::cmpOffBDS outlier " << maxResPrn.toString() << " " << maxRes << endl;
    513515        delete obsVector.at(maxResIndex);
    514516        obsVector.erase(obsVector.begin() + maxResIndex);
  • trunk/BNC/src/PPP/pppClient.h

    r10256 r10259  
    3939  double              offGal() const {return _offGal;}
    4040  double              offBds() const {return _offBds;}
     41  void                resetOffGlo() {_offGlo = 0.0;}
     42  void                resetOffGal() {_offGal = 0.0;}
     43  void                resetOffBds() {_offBds = 0.0;}
    4144
    4245  std::ostringstream& log() {return *_log;}
     
    8184  bool                      _pseudoObsIono;
    8285  QMap<char, int>           _usedSystems;
     86  bool                      _running;
    8387};
    8488
  • trunk/BNC/src/PPP/pppFilter.cpp

    r10257 r10259  
    372372        }
    373373
    374         // Check Pre-Fit Residuals => switched off, because after a millisecond receiver clock jump, a cycle slip is detected for all satellites
     374        // Check Pre-Fit Residuals
     375        //=> switched off, because after a millisecond receiver clock jump, a cycle slip is detected for all satellites
    375376        /* -----------------------
    376377
  • trunk/BNC/src/PPP/pppParlist.cpp

    r10256 r10259  
    497497  // GLONASS Clock Offset
    498498  // --------------------
    499   if (OPT->useSystem('R')) {
     499  if ( _usedSystems.contains('R')  &&
     500      (_usedSystems.contains('G') || _usedSystems.contains('E') || _usedSystems.contains('C'))) {
    500501    required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy));
     502  }
     503  else {
     504    PPP_CLIENT->resetOffGlo();
    501505  }
    502506
    503507  // Galileo Clock Offset
    504508  // --------------------
    505   if (OPT->useSystem('E')) {
     509  if (_usedSystems.contains('E') && _usedSystems.contains('G')) {
    506510    required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy));
     511  }
     512  else {
     513    PPP_CLIENT->resetOffGal();
    507514  }
    508515
    509516  // BDS Clock Offset
    510517  // ----------------
    511   if (OPT->useSystem('C')) {
     518  if (_usedSystems.contains('C')  && (_usedSystems.contains('G') || _usedSystems.contains('E'))) {
    512519    required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy));
     520  }
     521  else {
     522    PPP_CLIENT->resetOffBds();
    513523  }
    514524
  • trunk/BNC/src/pppMain.cpp

    r10257 r10259  
    528528    opt->_aprSigAmb       = 10000.0;
    529529    opt->_aprSigClk       = 300000.0;
    530     opt->_aprSigClkOff    = 100000.0;
     530    opt->_aprSigClkOff    = 1000.0;
    531531    opt->_aprSigIon       = 1000.0;
    532532    opt->_noiseIon        = 100.0;
Note: See TracChangeset for help on using the changeset viewer.