Changeset 10091 in ntrip
- Timestamp:
- Jun 16, 2023, 6:51:52 AM (16 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r10073 r10091 226 226 #endif 227 227 printEphHeader(); 228 //printEphHeader(eph->receptStaID()); 228 229 printEph(*eph, (ircPut == success)); 229 230 return success; … … 272 273 // Print Header of the output File(s) 273 274 //////////////////////////////////////////////////////////////////////////// 274 void t_bncCore::printEphHeader( ) {275 void t_bncCore::printEphHeader(QString receptStaID) { 275 276 276 277 bncSettings settings; 277 278 QStringList comments; 279 bool separateFiles = false;// Qt::CheckState(settings.value("ephFilePerStation").toInt()); 278 280 279 281 QListIterator<QString> it(settings.value("mountPoints").toStringList()); … … 284 286 QUrl url(hlp[0]); 285 287 QString decoder = hlp[1]; 286 comments.append("Source: " + decoder + 287 " " + QUrl::toAce(url.host()) + 288 "/" + url.path().mid(1).toLatin1()); 288 if (!separateFiles) { 289 comments.append("Source: " + decoder + 290 " " + QUrl::toAce(url.host()) + 291 "/" + url.path().mid(1).toLatin1()); 292 } 289 293 } 290 294 … … 311 315 QDateTime datTim = currentDateAndTimeGPS(); 312 316 313 QString ephFileNameGPS = _ephPath + "BRDC"; 317 QString ephFileNameGPS = _ephPath; // + "BRDC"; 318 319 (separateFiles) ? ephFileNameGPS += receptStaID.left(4) : 320 ephFileNameGPS += "BRDC"; 314 321 315 322 QString hlpStr = bncRinex::nextEpochStr(datTim, … … 320 327 QString monNum = "0"; 321 328 QString recNum = "0"; 329 if (separateFiles && receptStaID.size() >= 9) { 330 monNum = receptStaID.mid(4,1); 331 recNum = receptStaID.mid(5,1); 332 country = receptStaID.mid(6,3); 333 } 322 334 ephFileNameGPS += QString("%1").arg(monNum, 1, 10) + 323 335 QString("%1").arg(recNum, 1, 10) + -
trunk/BNC/src/bnccore.h
r10040 r10091 115 115 t_irc checkPrintEph(t_eph* eph); 116 116 void printEphHeader(); 117 //void printEphHeader(QString receptStaID); 117 118 void printEph(const t_eph& eph, bool printFile); 118 119 void printOutputEph(bool printFile, QTextStream* stream, -
trunk/BNC/src/bncutils.cpp
r9797 r10091 916 916 int indexFromAccuracy(double accuracy, t_eph::e_type type) { 917 917 918 if (type == t_eph::GPS || type == t_eph::BDS || type == t_eph::SBAS 919 || type == t_eph::QZSS) { 918 if (type == t_eph::GPS || 919 type == t_eph::BDS || 920 type == t_eph::SBAS || 921 type == t_eph::QZSS) { 920 922 921 923 if (accuracy <= 2.40) { -
trunk/BNC/src/bncwindow.cpp
r10034 r10091 280 280 _ephVersComboBox->setCurrentIndex(jk); 281 281 } 282 //_ephFilePerStation = new QCheckBox(); 283 //_ephFilePerStation->setCheckState(Qt::CheckState(settings.value("ephFilePerStation").toInt())); 282 284 283 285 connect(_ephOutPortLineEdit, SIGNAL(textChanged(const QString &)), … … 839 841 eLayout->addWidget(_ephVersComboBox, 4, 1); 840 842 eLayout->setRowStretch(5, 999); 843 //eLayout->addWidget(new QLabel("File per Station"), 5, 0); 844 //eLayout->addWidget(_ephFilePerStation, 5, 1); 845 //eLayout->setRowStretch(6, 999); 841 846 842 847 egroup->setLayout(eLayout); … … 1399 1404 _ephOutPortLineEdit->setWhatsThis(tr("<p>BNC can produce ephemeris data in RINEX Navigation ASCII format on your local host through an IP port.</p><p>Specify a port number here to activate this function. <i>[key: ephOutPort]</i></p>")); 1400 1405 _ephVersComboBox->setWhatsThis(tr("<p>Select the format for RINEX Navigation files. <i>[key: ephVersion]</i></p>")); 1406 //_ephFilePerStation->setWhatsThis(tr("<p>By default, all received Broadcast Ephemeris data will be stored within one File. Thick 'File per Stations' to get separate files per station/mountpoint. <i>[key: ephFilePerStation]</i></p>")); 1401 1407 1402 1408 // WhatsThis, RINEX Editing & QC … … 1611 1617 delete _rnxV2Priority; 1612 1618 delete _ephPathLineEdit; 1619 //delete _ephFilePerStation; 1613 1620 delete _ephIntrComboBox; 1614 1621 delete _ephOutPortLineEdit; … … 2081 2088 settings.setValue("ephOutPort", _ephOutPortLineEdit->text()); 2082 2089 settings.setValue("ephVersion", _ephVersComboBox->currentText()); 2090 //settings.setValue("ephFilePerStation", _ephFilePerStation->checkState()); 2083 2091 // Broadcast Corrections 2084 2092 settings.setValue("corrPath", _corrPathLineEdit->text()); … … 2598 2606 enableWidget(enable, _ephIntrComboBox); 2599 2607 enableWidget(enable, _ephVersComboBox); 2608 //enableWidget(enable, _ephVersComboBox); 2609 //enableWidget(enable, _ephFilePerStation); 2600 2610 } 2601 2611 -
trunk/BNC/src/bncwindow.h
r9795 r10091 167 167 QLineEdit* _rnxV2Priority; 168 168 QComboBox* _ephVersComboBox; 169 //QCheckBox* _ephFilePerStation; 169 170 QCheckBox* _rnxFileCheckBox; 170 171 QLineEdit* _rnxScrpLineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.