Changeset 9599 in ntrip for trunk


Ignore:
Timestamp:
Jan 13, 2022, 5:05:06 PM (2 years ago)
Author:
stuerze
Message:

additional iono mountpoint added for ppp

Location:
trunk/BNC/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r9574 r9599  
    957957  _pppWidgets._snxtroAc  ->setMaximumWidth(10*ww);
    958958  _pppWidgets._snxtroSol ->setMaximumWidth(7*ww);
     959  _pppWidgets._ionoMount->setMaximumWidth(15*ww);
     960
    959961
    960962  QGridLayout* pppLayout1 = new QGridLayout();
     
    997999  pppLayout1->addWidget(_pppWidgets._snxtroSampl,            ir, 7, Qt::AlignRight);
    9981000  ++ir;
     1001  pppLayout1->addWidget(new QLabel("Ionosphere stream"),     ir, 0);
     1002  pppLayout1->addWidget(_pppWidgets._ionoMount,              ir, 1);
     1003  pppLayout1->addWidget(new QLabel("Ionosphere file"),       ir, 2);
     1004  pppLayout1->addWidget(_pppWidgets._ionoFile,               ir, 3);
    9991005  pppLayout1->addWidget(new QLabel("   SNX TRO AC"),         ir, 4);
    10001006  pppLayout1->addWidget(_pppWidgets._snxtroAc,               ir, 5);
     
    14441450  _pppWidgets._snxtroAc->setWhatsThis(tr("<p>Specify a 3-character abbreviation describing you as the generating Analysis Center (AC) in your SINEX troposphere files.</p>"));
    14451451  _pppWidgets._snxtroSol->setWhatsThis(tr("<p>Specify a 4-character solution ID to allow a distingtion between different solutions per AC.</p>"));
     1452  _pppWidgets._ionoMount->setWhatsThis(tr("<p>Specify a 'mountpoint' from the 'Streams' canvas below which provides VTEC informations in SSR format.</p><p>If you don't specify a corrections stream via this option, BNC will use VTEC informations from the Corrections stream 'mountpoint', if available.</p>"));
    14461453
    14471454  // WhatsThis, PPP (3)
  • trunk/BNC/src/pppMain.cpp

    r9585 r9599  
    164164      opt->_corrMount.assign(settings.value("PPP/corrMount").toString().toStdString());
    165165      opt->_isAPC = (opt->_corrMount.substr(0,4)=="SSRA");
     166      opt->_ionoMount.assign(settings.value("PPP/ionoMount").toString().toStdString());
    166167    }
    167168    else {
     
    171172      QFileInfo tmp = QFileInfo(QString::fromStdString(opt->_corrFile));
    172173      opt->_isAPC = (tmp.baseName().mid(0,4)=="SSRA");
     174      opt->_ionoFile.assign(settings.value("PPP/ionoFile").toString().toStdString());
    173175    }
    174176
  • trunk/BNC/src/pppOptions.h

    r9587 r9599  
    3636  std::string             _crdFile;
    3737  std::string             _corrMount;
     38  std::string             _ionoMount;
    3839  bool                    _isAPC;
    3940  std::string             _rinexObs;
    4041  std::string             _rinexNav;
    4142  std::string             _corrFile;
     43  std::string             _ionoFile;
    4244  double                  _corrWaitTime;
    4345  std::string             _roverName;
  • trunk/BNC/src/pppRun.cpp

    r9550 r9599  
    130130    _rnxNavFile = 0;
    131131    _corrFile   = 0;
     132    _ionoFile   = 0;
    132133    _speed      = settings.value("PPP/mapSpeedSlider").toInt();
    133134    connect(this, SIGNAL(progressRnxPPP(int)), BNC_CORE, SIGNAL(progressRnxPPP(int)));
     
    422423
    423424  if (_opt->_realTime) {
    424     if (_opt->_corrMount.empty() || _opt->_corrMount != vTec._staID) {
    425       return;
    426     }
    427   }
    428 
     425    if (_opt->_ionoMount.empty() && _opt->_corrMount.empty()) {
     426      return;
     427    }
     428    if ( _opt->_ionoMount.empty() &&
     429        !_opt->_corrMount.empty() && _opt->_corrMount != vTec._staID) {
     430      return;
     431    }
     432    if (!_opt->_ionoMount.empty() && _opt->_ionoMount != vTec._staID) {
     433      return;
     434    }
     435  }
    429436  _pppClient->putTec(&vTec);
    430437}
     
    555562  }
    556563
     564  if (!_opt->_ionoFile.empty()) {
     565    _ionoFile = new t_corrFile(QString(_opt->_corrFile.c_str()));
     566    connect(_ionoFile, SIGNAL(newTec(t_vTec)),
     567            this, SLOT(slotNewTec(t_vTec)));
     568  }
     569
    557570  // Read/Process Observations
    558571  // -------------------------
     
    583596      catch (...) {
    584597        emit newMessage("unknown exceptions in corrFile", true);
     598        break;
     599      }
     600    }
     601
     602    // Get Additional VTEC Informations
     603    // --------------------------------
     604    if (_ionoFile) {
     605      try {
     606        _ionoFile->syncRead(epo->tt);
     607      }
     608      catch (const char* msg) {
     609        emit newMessage(QByteArray(msg), true);
     610        break;
     611      }
     612      catch (const string& msg) {
     613        emit newMessage(QByteArray(msg.c_str()), true);
     614        break;
     615      }
     616      catch (...) {
     617        emit newMessage("unknown exceptions in ionoFile", true);
    585618        break;
    586619      }
  • trunk/BNC/src/pppRun.h

    r7972 r9599  
    7171  t_rnxNavFile*          _rnxNavFile;
    7272  t_corrFile*            _corrFile;
     73  t_corrFile*            _ionoFile;
    7374  int                    _speed;
    7475  bool                   _stopFlag;
  • trunk/BNC/src/pppWidgets.cpp

    r9580 r9599  
    6565  _rinexNav     = new qtFileChooser(); _rinexNav    ->setObjectName("PPP/rinexNav");     _widgets << _rinexNav;
    6666  _corrMount    = new QLineEdit();     _corrMount   ->setObjectName("PPP/corrMount");    _widgets << _corrMount;
     67  _ionoMount    = new QLineEdit();     _ionoMount   ->setObjectName("PPP/ionoMount");    _widgets << _ionoMount;
    6768  _corrFile     = new qtFileChooser(); _corrFile    ->setObjectName("PPP/corrFile");     _widgets << _corrFile;
     69  _ionoFile     = new qtFileChooser(); _ionoFile    ->setObjectName("PPP/ionoFile");     _widgets << _ionoFile;
    6870  _crdFile      = new qtFileChooser(); _crdFile     ->setObjectName("PPP/crdFile");      _widgets << _crdFile;
    6971  _antexFile    = new qtFileChooser(); _antexFile   ->setObjectName("PPP/antexFile");    _widgets << _antexFile;
     
    233235  delete _rinexNav;
    234236  delete _corrMount;
     237  delete _ionoMount;
    235238  delete _corrFile;
     239  delete _ionoFile;
    236240  delete _crdFile;
    237241  delete _antexFile;
     
    330334  // ---------
    331335  _corrMount  ->setText(settings.value(_corrMount  ->objectName()).toString());
     336  _ionoMount  ->setText(settings.value(_ionoMount  ->objectName()).toString());
    332337  _logPath    ->setText(settings.value(_logPath    ->objectName()).toString());
    333338  _nmeaPath   ->setText(settings.value(_nmeaPath   ->objectName()).toString());
     
    446451  settings.setValue(_rinexNav    ->objectName(), _rinexNav    ->fileName());
    447452  settings.setValue(_corrMount   ->objectName(), _corrMount   ->text());
     453  settings.setValue(_ionoMount   ->objectName(), _ionoMount   ->text());
    448454  settings.setValue(_corrFile    ->objectName(), _corrFile    ->fileName());
     455  settings.setValue(_ionoFile    ->objectName(), _ionoFile    ->fileName());
    449456  settings.setValue(_crdFile     ->objectName(), _crdFile     ->fileName());
    450457  settings.setValue(_antexFile   ->objectName(), _antexFile   ->fileName());
     
    527534    _rinexNav->setEnabled(false);
    528535    _corrFile->setEnabled(false);
     536    _ionoFile->setEnabled(false);
    529537  }
    530538  else if (rinexFiles) {
    531539    _corrMount    ->setEnabled(false);
     540    _ionoMount    ->setEnabled(false);
    532541    _audioResponse->setEnabled(false);
    533542  }
     
    549558    _pseudoObs->setEnabled(true);
    550559    _sigmaGIM->setEnabled(true);
     560    _maxResGIM->setEnabled(true);
    551561  } else {
    552562    _pseudoObs->setEnabled(false);
    553563    _sigmaGIM->setEnabled(false);
     564    _maxResGIM->setEnabled(false);
    554565  }
    555566
  • trunk/BNC/src/pppWidgets.h

    r9552 r9599  
    4949  qtFileChooser* _rinexNav;
    5050  QLineEdit*     _corrMount;
     51  QLineEdit*     _ionoMount;
    5152  qtFileChooser* _corrFile;
     53  qtFileChooser* _ionoFile;
    5254  qtFileChooser* _crdFile;
    5355  qtFileChooser* _antexFile;
Note: See TracChangeset for help on using the changeset viewer.