Changeset 9599 in ntrip for trunk/BNC/src
- Timestamp:
- Jan 13, 2022, 5:05:06 PM (3 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r9574 r9599 957 957 _pppWidgets._snxtroAc ->setMaximumWidth(10*ww); 958 958 _pppWidgets._snxtroSol ->setMaximumWidth(7*ww); 959 _pppWidgets._ionoMount->setMaximumWidth(15*ww); 960 959 961 960 962 QGridLayout* pppLayout1 = new QGridLayout(); … … 997 999 pppLayout1->addWidget(_pppWidgets._snxtroSampl, ir, 7, Qt::AlignRight); 998 1000 ++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); 999 1005 pppLayout1->addWidget(new QLabel(" SNX TRO AC"), ir, 4); 1000 1006 pppLayout1->addWidget(_pppWidgets._snxtroAc, ir, 5); … … 1444 1450 _pppWidgets._snxtroAc->setWhatsThis(tr("<p>Specify a 3-character abbreviation describing you as the generating Analysis Center (AC) in your SINEX troposphere files.</p>")); 1445 1451 _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>")); 1446 1453 1447 1454 // WhatsThis, PPP (3) -
trunk/BNC/src/pppMain.cpp
r9585 r9599 164 164 opt->_corrMount.assign(settings.value("PPP/corrMount").toString().toStdString()); 165 165 opt->_isAPC = (opt->_corrMount.substr(0,4)=="SSRA"); 166 opt->_ionoMount.assign(settings.value("PPP/ionoMount").toString().toStdString()); 166 167 } 167 168 else { … … 171 172 QFileInfo tmp = QFileInfo(QString::fromStdString(opt->_corrFile)); 172 173 opt->_isAPC = (tmp.baseName().mid(0,4)=="SSRA"); 174 opt->_ionoFile.assign(settings.value("PPP/ionoFile").toString().toStdString()); 173 175 } 174 176 -
trunk/BNC/src/pppOptions.h
r9587 r9599 36 36 std::string _crdFile; 37 37 std::string _corrMount; 38 std::string _ionoMount; 38 39 bool _isAPC; 39 40 std::string _rinexObs; 40 41 std::string _rinexNav; 41 42 std::string _corrFile; 43 std::string _ionoFile; 42 44 double _corrWaitTime; 43 45 std::string _roverName; -
trunk/BNC/src/pppRun.cpp
r9550 r9599 130 130 _rnxNavFile = 0; 131 131 _corrFile = 0; 132 _ionoFile = 0; 132 133 _speed = settings.value("PPP/mapSpeedSlider").toInt(); 133 134 connect(this, SIGNAL(progressRnxPPP(int)), BNC_CORE, SIGNAL(progressRnxPPP(int))); … … 422 423 423 424 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 } 429 436 _pppClient->putTec(&vTec); 430 437 } … … 555 562 } 556 563 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 557 570 // Read/Process Observations 558 571 // ------------------------- … … 583 596 catch (...) { 584 597 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); 585 618 break; 586 619 } -
trunk/BNC/src/pppRun.h
r7972 r9599 71 71 t_rnxNavFile* _rnxNavFile; 72 72 t_corrFile* _corrFile; 73 t_corrFile* _ionoFile; 73 74 int _speed; 74 75 bool _stopFlag; -
trunk/BNC/src/pppWidgets.cpp
r9580 r9599 65 65 _rinexNav = new qtFileChooser(); _rinexNav ->setObjectName("PPP/rinexNav"); _widgets << _rinexNav; 66 66 _corrMount = new QLineEdit(); _corrMount ->setObjectName("PPP/corrMount"); _widgets << _corrMount; 67 _ionoMount = new QLineEdit(); _ionoMount ->setObjectName("PPP/ionoMount"); _widgets << _ionoMount; 67 68 _corrFile = new qtFileChooser(); _corrFile ->setObjectName("PPP/corrFile"); _widgets << _corrFile; 69 _ionoFile = new qtFileChooser(); _ionoFile ->setObjectName("PPP/ionoFile"); _widgets << _ionoFile; 68 70 _crdFile = new qtFileChooser(); _crdFile ->setObjectName("PPP/crdFile"); _widgets << _crdFile; 69 71 _antexFile = new qtFileChooser(); _antexFile ->setObjectName("PPP/antexFile"); _widgets << _antexFile; … … 233 235 delete _rinexNav; 234 236 delete _corrMount; 237 delete _ionoMount; 235 238 delete _corrFile; 239 delete _ionoFile; 236 240 delete _crdFile; 237 241 delete _antexFile; … … 330 334 // --------- 331 335 _corrMount ->setText(settings.value(_corrMount ->objectName()).toString()); 336 _ionoMount ->setText(settings.value(_ionoMount ->objectName()).toString()); 332 337 _logPath ->setText(settings.value(_logPath ->objectName()).toString()); 333 338 _nmeaPath ->setText(settings.value(_nmeaPath ->objectName()).toString()); … … 446 451 settings.setValue(_rinexNav ->objectName(), _rinexNav ->fileName()); 447 452 settings.setValue(_corrMount ->objectName(), _corrMount ->text()); 453 settings.setValue(_ionoMount ->objectName(), _ionoMount ->text()); 448 454 settings.setValue(_corrFile ->objectName(), _corrFile ->fileName()); 455 settings.setValue(_ionoFile ->objectName(), _ionoFile ->fileName()); 449 456 settings.setValue(_crdFile ->objectName(), _crdFile ->fileName()); 450 457 settings.setValue(_antexFile ->objectName(), _antexFile ->fileName()); … … 527 534 _rinexNav->setEnabled(false); 528 535 _corrFile->setEnabled(false); 536 _ionoFile->setEnabled(false); 529 537 } 530 538 else if (rinexFiles) { 531 539 _corrMount ->setEnabled(false); 540 _ionoMount ->setEnabled(false); 532 541 _audioResponse->setEnabled(false); 533 542 } … … 549 558 _pseudoObs->setEnabled(true); 550 559 _sigmaGIM->setEnabled(true); 560 _maxResGIM->setEnabled(true); 551 561 } else { 552 562 _pseudoObs->setEnabled(false); 553 563 _sigmaGIM->setEnabled(false); 564 _maxResGIM->setEnabled(false); 554 565 } 555 566 -
trunk/BNC/src/pppWidgets.h
r9552 r9599 49 49 qtFileChooser* _rinexNav; 50 50 QLineEdit* _corrMount; 51 QLineEdit* _ionoMount; 51 52 qtFileChooser* _corrFile; 53 qtFileChooser* _ionoFile; 52 54 qtFileChooser* _crdFile; 53 55 qtFileChooser* _antexFile;
Note:
See TracChangeset
for help on using the changeset viewer.