- Timestamp:
- Jun 9, 2022, 5:10:10 PM (2 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r9675 r9760 288 288 if (_rinexVers == 0) { 289 289 290 if ( Qt::CheckState(settings.value("ephV2").toInt()) == Qt::Checked) { 291 _rinexVers = 2; 292 } 293 else { 294 _rinexVers = 3; 295 } 290 _rinexVers = settings.value("ephVersion").toInt(); 296 291 297 292 _ephPath = settings.value("ephPath").toString(); … … 313 308 QString ephFileNameGPS = _ephPath + "BRDC"; 314 309 315 bool ephV2 = (_rinexVers == 2)? true : false;316 317 310 QString hlpStr = bncRinex::nextEpochStr(datTim, 318 settings.value("ephIntr").toString(), ephV2);319 320 if (_rinexVers == 3) {311 settings.value("ephIntr").toString(), _rinexVers); 312 313 if (_rinexVers > 2) { 321 314 QString country = "WRD"; // WORLD 322 315 QString monNum = "0"; … … 359 352 _ephStreamGPS->setDevice(_ephFileGPS); 360 353 361 if (_rinexVers == 3) {354 if (_rinexVers > 2) { 362 355 _ephFileGlonass = _ephFileGPS; 363 356 _ephStreamGlonass = _ephStreamGPS; … … 367 360 _ephStreamSBAS = _ephStreamGPS; 368 361 } 369 else if (_rinexVers == 2){362 else { 370 363 QString ephFileNameGlonass = _ephPath + "BRDC" + 371 364 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) + … … 388 381 // Header - RINEX Version 3 389 382 // ------------------------ 390 if (_rinexVers == 3) {383 if (_rinexVers > 2) { 391 384 if ( ! (appendFlagGPS & QIODevice::Append)) { 392 385 QString line = QString().asprintf("%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", … … 415 408 // Headers - RINEX Version 2 416 409 // ------------------------- 417 else if (_rinexVers == 2){410 else { 418 411 if (! (appendFlagGPS & QIODevice::Append)) { 419 412 QString line = QString().asprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", … … 470 463 QString strV2 = eph.toString(defaultRnxNavVersion2); 471 464 QString strV3 = eph.toString(defaultRnxNavVersion3); 465 QString strV4 = eph.toString(defaultRnxNavVersion4); 472 466 473 467 if (_rinexVers == 2 && eph.type() == t_eph::GLONASS) { 474 printOutputEph(printFile, _ephStreamGlonass, strV2, strV3 );468 printOutputEph(printFile, _ephStreamGlonass, strV2, strV3, strV4); 475 469 } 476 470 else if(_rinexVers == 2 && eph.type() == t_eph::GPS) { 477 printOutputEph(printFile, _ephStreamGPS, strV2, strV3 );471 printOutputEph(printFile, _ephStreamGPS, strV2, strV3, strV4); 478 472 } 479 473 else if (_rinexVers == 3) { 480 printOutputEph(printFile, _ephStreamGPS, strV2, strV3 );474 printOutputEph(printFile, _ephStreamGPS, strV2, strV3, strV4); 481 475 } 482 476 } … … 485 479 //////////////////////////////////////////////////////////////////////////// 486 480 void t_bncCore::printOutputEph(bool printFile, QTextStream* stream, 487 const QString& strV2, const QString& strV3) { 481 const QString& strV2, const QString& strV3, 482 const QString& strV4) { 488 483 489 484 // Output into file 490 485 // ---------------- 491 486 if (printFile && stream) { 492 if (_rinexVers == 2) {487 if (_rinexVers == 2) { 493 488 *stream << strV2.toLatin1(); 494 489 } 495 else {490 else if (_rinexVers == 3) { 496 491 *stream << strV3.toLatin1(); 492 } 493 else if (_rinexVers == 4) { 494 *stream << strV4.toLatin1(); 497 495 } 498 496 stream->flush(); -
trunk/BNC/src/bnccore.h
r9739 r9760 117 117 void printEph(const t_eph& eph, bool printFile); 118 118 void printOutputEph(bool printFile, QTextStream* stream, 119 const QString& strV2, const QString& strV3); 119 const QString& strV2, const QString& strV3, 120 const QString& strV4); 120 121 void messagePrivate(const QByteArray& msg); 121 122 -
trunk/BNC/src/bncmain.cpp
r9739 r9760 116 116 " rnxScript {File upload script, full path [character string]}\n" 117 117 " rnxV2Priority {Priority of signal attributes [character string, list separated by blank character, example: G:12&PWCSLXYN G:5&IQX C:IQX]}\n" 118 " rnxV 2 {Produce version 2 file contents [integer number: 0=no,2=yes]}\n"118 " rnxVersion {Specifies the RINEX version of the file contents [integer number: 2|3|4 ]}\n" 119 119 "\n" 120 120 "RINEX Ephemeris Panel keys:\n" … … 122 122 " ephIntr {File interval [character string: 1 min|2 min|5 min|10 min|15 min|30 min|1 hour|1 day]}\n" 123 123 " ephOutPort {Output port [integer number]}\n" 124 " ephV 2 {Produce version 2 file contents [integer number: 0=no,2=yes]}\n"124 " ephVersion {Specifies the RINEX version of the file contents [integer number: 2|3|4]}\n" 125 125 "\n" 126 126 "RINEX Editing and QC Panel keys:\n" -
trunk/BNC/src/bncrinex.cpp
r9184 r9760 116 116 _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool(); 117 117 118 _rnxV 2 = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked) ? true : false;118 _rnxVersion = settings.value("rnxVersion").toInt(); 119 119 } 120 120 … … 250 250 //////////////////////////////////////////////////////////////////////////// 251 251 QString bncRinex::nextEpochStr(const QDateTime& datTim, 252 const QString& intStr, bool rnxV2,252 const QString& intStr, int rnxVersion, 253 253 QDateTime* nextEpoch) { 254 254 … … 262 262 if ( indHlp != -1) { 263 263 int step = intStr.left(indHlp-1).toInt(); 264 if ( !rnxV2) {264 if (rnxVersion > 2) { 265 265 epoStr += QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0')); // H 266 266 } else { … … 289 289 } 290 290 } 291 if ( !rnxV2) {291 if (rnxVersion > 2) { 292 292 epoStr += QString("_%1M").arg(step, 2, 10, QChar('0')); // period 293 293 } … … 295 295 else if (intStr == "1 hour") { 296 296 int step = intStr.left(indHlp-1).toInt(); 297 if ( !rnxV2) {297 if (rnxVersion > 2) { 298 298 epoStr += QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0')); // H 299 299 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // M … … 313 313 else { 314 314 int step = intStr.left(indHlp-1).toInt(); 315 if ( !rnxV2) {315 if (rnxVersion > 2) { 316 316 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // H 317 317 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // M … … 344 344 345 345 QString hlpStr = nextEpochStr(datTim, settings.value("rnxIntr").toString(), 346 _rnxV 2, &_nextCloseEpoch);346 _rnxVersion, &_nextCloseEpoch); 347 347 348 348 int n = _statID.size(); … … 390 390 _localSklNameAlternative = sklPath + ID.toLower() + distStr + "." + sklExt; 391 391 392 if ( !_rnxV2) {392 if (_rnxVersion > 2) { 393 393 QString country; 394 394 QString monNum = "0"; … … 438 438 // Set RINEX Version 439 439 // ----------------- 440 int intHeaderVers = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked ? 2 : 3);440 int intHeaderVers = settings.value("rnxVersion").toInt(); 441 441 442 442 // Open the Output File -
trunk/BNC/src/bncrinex.h
r9158 r9760 47 47 static QString nextEpochStr(const QDateTime& datTim, 48 48 const QString& intStr, 49 bool rnxV2,49 int rnxVersion, 50 50 QDateTime* nextEpoch = 0); 51 51 static std::string asciiSatLine(const t_satObs& obs, bool outLockTime); … … 71 71 QString _localSklNameAlternative; 72 72 bool _writeRinexFileOnlyWithSkl; 73 bool _rnxV2;73 int _rnxVersion; 74 74 QByteArray _latitude; 75 75 QByteArray _longitude; -
trunk/BNC/src/bncsettings.cpp
r9652 r9760 92 92 setValue_p("rnxV2Priority", ""); 93 93 setValue_p("rnxScript", ""); 94 setValue_p("rnxV 2", "0");94 setValue_p("rnxVersion", "3"); 95 95 // RINEX Ephemeris 96 96 setValue_p("ephPath", ""); 97 97 setValue_p("ephIntr", "1 day"); 98 98 setValue_p("ephOutPort", ""); 99 setValue_p("ephV 2", "0");99 setValue_p("ephVersion", "3"); 100 100 // Reqc 101 101 setValue_p("reqcAction", ""); -
trunk/BNC/src/bncwindow.cpp
r9702 r9760 210 210 _onTheFlyComboBox->setEditable(false); 211 211 _onTheFlyComboBox->addItems(QString("no,1 day,1 hour,5 min,1 min").split(",")); 212 int ii= _onTheFlyComboBox->findText(settings.value("onTheFlyInterval").toString());213 if ( ii!= -1) {214 _onTheFlyComboBox->setCurrentIndex( ii);212 int go = _onTheFlyComboBox->findText(settings.value("onTheFlyInterval").toString()); 213 if (go != -1) { 214 _onTheFlyComboBox->setCurrentIndex(go); 215 215 } 216 216 _autoStartCheckBox = new QCheckBox(); … … 220 220 // RINEX Observations Options 221 221 // -------------------------- 222 _rnxPathLineEdit 223 _rnxIntrComboBox 222 _rnxPathLineEdit = new QLineEdit(settings.value("rnxPath").toString()); 223 _rnxIntrComboBox = new QComboBox(); 224 224 _rnxIntrComboBox->setEditable(false); 225 225 _rnxIntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(",")); 226 i i = _rnxIntrComboBox->findText(settings.value("rnxIntr").toString());226 int ii = _rnxIntrComboBox->findText(settings.value("rnxIntr").toString()); 227 227 if (ii != -1) { 228 228 _rnxIntrComboBox->setCurrentIndex(ii); 229 229 } 230 _rnxSamplComboBox 230 _rnxSamplComboBox = new QComboBox(); 231 231 _rnxSamplComboBox->setEditable(false); 232 232 _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); … … 240 240 _rnxSkelExtComboBox->setEditable(false); 241 241 _rnxSkelExtComboBox->addItems(QString("skl, SKL").split(",")); 242 int il = _rnxSkelExtComboBox->findText(settings.value("rnxSkel").toString()); 242 int ik = _rnxSkelExtComboBox->findText(settings.value("rnxSkel").toString()); 243 if (ik != -1) { 244 _rnxSkelExtComboBox->setCurrentIndex(ik); 245 } 246 _rnxSkelPathLineEdit = new QLineEdit(settings.value("rnxSkelPath").toString()); 247 _rnxScrpLineEdit = new QLineEdit(settings.value("rnxScript").toString()); 248 _rnxVersComboBox = new QComboBox(); 249 _rnxVersComboBox->setEditable(false); 250 _rnxVersComboBox->addItems(QString("4,3,2").split(",")); 251 _rnxVersComboBox->setMaximumWidth(7*ww); 252 int il = _rnxVersComboBox->findText(settings.value("rnxVersion").toString()); 243 253 if (il != -1) { 244 _rnxSkelExtComboBox->setCurrentIndex(il); 245 } 246 _rnxSkelPathLineEdit = new QLineEdit(settings.value("rnxSkelPath").toString()); 247 _rnxScrpLineEdit = new QLineEdit(settings.value("rnxScript").toString()); 248 _rnxV2CheckBox = new QCheckBox(); 249 _rnxV2CheckBox->setCheckState(Qt::CheckState(settings.value("rnxV2").toInt())); 254 _rnxVersComboBox->setCurrentIndex(il); 255 } 250 256 QString hlp = settings.value("rnxV2Priority").toString(); 251 257 if (hlp.isEmpty()) { … … 256 262 connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotBncTextChanged())); 257 263 connect(_rnxSkelPathLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotBncTextChanged())); 258 connect(_rnxV 2CheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));264 connect(_rnxVersComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(slotBncTextChanged())); 259 265 260 266 // RINEX Ephemeris Options 261 267 // ----------------------- 262 _ephPathLineEdit 263 _ephIntrComboBox 268 _ephPathLineEdit = new QLineEdit(settings.value("ephPath").toString()); 269 _ephIntrComboBox = new QComboBox(); 264 270 _ephIntrComboBox->setEditable(false); 265 271 _ephIntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(",")); 266 int jj = _ephIntrComboBox->findText(settings.value("ephIntr").toString()); 267 if (jj != -1) { 268 _ephIntrComboBox->setCurrentIndex(jj); 269 } 270 _ephOutPortLineEdit = new QLineEdit(settings.value("ephOutPort").toString()); 271 _ephV2CheckBox = new QCheckBox(); 272 _ephV2CheckBox->setCheckState(Qt::CheckState(settings.value("ephV2").toInt())); 272 int ji = _ephIntrComboBox->findText(settings.value("ephIntr").toString()); 273 if (ji != -1) { 274 _ephIntrComboBox->setCurrentIndex(ji); 275 } 276 _ephOutPortLineEdit = new QLineEdit(settings.value("ephOutPort").toString()); 277 _ephVersComboBox = new QComboBox(); 278 _ephVersComboBox->setEditable(false); 279 _ephVersComboBox->addItems(QString("4,3,2").split(",")); 280 _ephVersComboBox->setMaximumWidth(7*ww); 281 int jk = _ephVersComboBox->findText(settings.value("ephVersion").toString()); 282 if (jk != -1) { 283 _ephVersComboBox->setCurrentIndex(jk); 284 } 273 285 274 286 connect(_ephOutPortLineEdit, SIGNAL(textChanged(const QString &)), … … 284 296 _corrIntrComboBox->setEditable(false); 285 297 _corrIntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(",")); 286 int mm= _corrIntrComboBox->findText(settings.value("corrIntr").toString());287 if ( mm!= -1) {288 _corrIntrComboBox->setCurrentIndex( mm);298 int bi = _corrIntrComboBox->findText(settings.value("corrIntr").toString()); 299 if (bi != -1) { 300 _corrIntrComboBox->setCurrentIndex(bi); 289 301 } 290 302 _corrPortLineEdit = new QLineEdit(settings.value("corrPort").toString()); … … 298 310 // Feed Engine Options 299 311 // ------------------- 300 _outPortLineEdit 301 _outWaitSpinBox 312 _outPortLineEdit = new QLineEdit(settings.value("outPort").toString()); 313 _outWaitSpinBox = new QSpinBox(); 302 314 _outWaitSpinBox->setMinimum(0); 303 315 _outWaitSpinBox->setMaximum(30); … … 305 317 _outWaitSpinBox->setSuffix(" sec"); 306 318 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 307 _outSamplComboBox 319 _outSamplComboBox = new QComboBox(); 308 320 _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 309 321 int nn = _outSamplComboBox->findText(settings.value("outSampl").toString()); … … 311 323 _outSamplComboBox->setCurrentIndex(nn); 312 324 } 313 _outFileLineEdit 314 _outUPortLineEdit 325 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 326 _outUPortLineEdit = new QLineEdit(settings.value("outUPort").toString()); 315 327 _outLockTimeCheckBox = new QCheckBox(); 316 328 _outLockTimeCheckBox->setCheckState(Qt::CheckState(settings.value("outLockTime").toInt())); … … 497 509 _cmbMethodComboBox->setEditable(false); 498 510 _cmbMethodComboBox->addItems(QString("Kalman Filter,Single-Epoch").split(",")); 499 int im = _cmbMethodComboBox->findText(settings.value("cmbMethod").toString());500 if ( im != -1) {501 _cmbMethodComboBox->setCurrentIndex( im);511 int cm = _cmbMethodComboBox->findText(settings.value("cmbMethod").toString()); 512 if (cm != -1) { 513 _cmbMethodComboBox->setCurrentIndex(cm); 502 514 } 503 515 … … 802 814 oLayout->addWidget(new QLabel("Script (full path)"), 5, 0); 803 815 oLayout->addWidget(_rnxScrpLineEdit, 5, 1, 1, 15); 804 oLayout->addWidget(new QLabel("Version 2"),6, 0);805 oLayout->addWidget(_rnxV 2CheckBox,6, 1);816 oLayout->addWidget(new QLabel("Version"), 6, 0); 817 oLayout->addWidget(_rnxVersComboBox, 6, 1); 806 818 oLayout->addWidget(new QLabel("Signal priority"), 6, 2, Qt::AlignRight); 807 819 oLayout->addWidget(_rnxV2Priority, 6, 3, 1, 13); … … 825 837 eLayout->addWidget(new QLabel("Port"), 3, 0); 826 838 eLayout->addWidget(_ephOutPortLineEdit, 3, 1); 827 eLayout->addWidget(new QLabel("Version 2"),4, 0);828 eLayout->addWidget(_ephV 2CheckBox,4, 1);839 eLayout->addWidget(new QLabel("Version"), 4, 0); 840 eLayout->addWidget(_ephVersComboBox, 4, 1); 829 841 eLayout->setRowStretch(5, 999); 830 842 … … 1131 1143 _reqcActionComboBox->setEditable(false); 1132 1144 _reqcActionComboBox->addItems(QString(",Edit/Concatenate,Analyze").split(",")); 1133 int i k= _reqcActionComboBox->findText(settings.value("reqcAction").toString());1134 if (i k!= -1) {1135 _reqcActionComboBox->setCurrentIndex(i k);1145 int ip = _reqcActionComboBox->findText(settings.value("reqcAction").toString()); 1146 if (ip != -1) { 1147 _reqcActionComboBox->setCurrentIndex(ip); 1136 1148 } 1137 1149 connect(_reqcActionComboBox, SIGNAL(currentIndexChanged(const QString &)), … … 1379 1391 _rnxScrpLineEdit->setWhatsThis(tr("<p>Whenever a RINEX Observation file is finally saved, you may want to compress, copy or upload it immediately, for example via FTP. BNC allows you to execute a script/batch file to carry out such operation.</p><p>Specify the full path of a script or batch file. BNC will pass the full RINEX Observation file path to the script as command line parameter (%1 on Windows systems, $1 on Unix/Linux/Mac systems). <i>[key: rnxScript]</i></p>")); 1380 1392 _rnxV2Priority->setWhatsThis(tr("<p>Specify a priority list of characters defining signal attributes as defined in RINEX Version 3. Priorities will be used to map observations with RINEX Version 3 attributes from incoming streams to Version 2. The underscore character '_' stands for undefined attributes. A question mark '?' can be used as wildcard which represents any one character.</p><p>Signal priorities can be specified as equal for all systems, as system specific or as system and freq. specific. For example: </li><ul><li>'CWPX_?' (General signal priorities valid for all GNSS) </li><li>'I:ABCX' (System specific signal priorities for IRNSS) </li><li>'G:12&PWCSLX G:5&IQX R:12&PC R:3&IQX' (System and frequency specific signal priorities) </li></ul>Default is the following priority list 'G:12&PWCSLX G:5&IQX R:12&PC R:3&IQX R:46&ABX E:16&BCXZ E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:267&IQX C:128&DPX C:7&DPZ I:ABCX S:1&C S:5&IQX'. <i>[key: rnxV2Priority]</i></p>")); 1381 _rnxV 2CheckBox->setWhatsThis(tr("<p>The default format for RINEX Observation files is RINEX Version 3.</p><p>Select 'Version 2' if you want to save observations in RINEX Version 2 format. <i>[key: rnxV2]</i></p>"));1393 _rnxVersComboBox->setWhatsThis(tr("<p>Select the format for RINEX Observation files. <i>[key: rnxVersion]</i></p>")); 1382 1394 1383 1395 // WhatsThis, RINEX Ephemeris … … 1386 1398 _ephIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Navigation file. <i>[key: ephIntr]</i></p>")); 1387 1399 _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>")); 1388 _ephV 2CheckBox->setWhatsThis(tr("<p>The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 3.</p><p>Select 'Version 2' if you want to output ephemeris in RINEX Version 2 format. <i>[key: ephV2]</i></p>"));1400 _ephVersComboBox->setWhatsThis(tr("<p>Select the format for RINEX Navigation files. <i>[key: ephVersion]</i></p>")); 1389 1401 1390 1402 // WhatsThis, RINEX Editing & QC … … 1593 1605 delete _rnxFileCheckBox; 1594 1606 delete _rnxScrpLineEdit; 1595 delete _rnxV 2CheckBox;1607 delete _rnxVersComboBox; 1596 1608 delete _rnxV2Priority; 1597 1609 delete _ephPathLineEdit; 1598 1610 delete _ephIntrComboBox; 1599 1611 delete _ephOutPortLineEdit; 1600 delete _ephV 2CheckBox;1612 delete _ephVersComboBox; 1601 1613 delete _corrPathLineEdit; 1602 1614 delete _corrIntrComboBox; … … 2058 2070 settings.setValue("rnxScript", _rnxScrpLineEdit->text()); 2059 2071 settings.setValue("rnxV2Priority",_rnxV2Priority->text()); 2060 settings.setValue("rnxV 2", _rnxV2CheckBox->checkState());2072 settings.setValue("rnxVersion", _rnxVersComboBox->currentText()); 2061 2073 // RINEX Ephemeris 2062 2074 settings.setValue("ephPath", _ephPathLineEdit->text()); 2063 2075 settings.setValue("ephIntr", _ephIntrComboBox->currentText()); 2064 2076 settings.setValue("ephOutPort", _ephOutPortLineEdit->text()); 2065 settings.setValue("ephV 2", _ephV2CheckBox->checkState());2077 settings.setValue("ephVersion", _ephVersComboBox->currentText()); 2066 2078 // Broadcast Corrections 2067 2079 settings.setValue("corrPath", _corrPathLineEdit->text()); … … 2555 2567 enableWidget(enable, _rnxScrpLineEdit); 2556 2568 enableWidget(enable, _rnxV2Priority); 2557 enableWidget(enable, _rnxV 2CheckBox);2569 enableWidget(enable, _rnxVersComboBox); 2558 2570 2559 2571 bool enable1 = true; 2560 enable1 = _rnxV 2CheckBox->isChecked();2572 enable1 = _rnxVersComboBox->currentText() == "2"; 2561 2573 if (enable && enable1) { 2562 2574 enableWidget(true, _rnxV2Priority); … … 2569 2581 // RINEX Observations, Signal Priority 2570 2582 // ----------------------------------- 2571 if (sender() == 0 || sender() == _rnxV 2CheckBox) {2583 if (sender() == 0 || sender() == _rnxVersComboBox) { 2572 2584 if (!_rnxPathLineEdit->text().isEmpty()) { 2573 2585 enableWidget(enable, _rnxIntrComboBox); 2574 enable = _rnxV 2CheckBox->isChecked();2586 enable = _rnxVersComboBox->currentText() == "2"; 2575 2587 enableWidget(enable, _rnxV2Priority); 2576 2588 } … … 2582 2594 enable = !_ephPathLineEdit->text().isEmpty() || !_ephOutPortLineEdit->text().isEmpty(); 2583 2595 enableWidget(enable, _ephIntrComboBox); 2584 enableWidget(enable, _ephV 2CheckBox);2596 enableWidget(enable, _ephVersComboBox); 2585 2597 } 2586 2598 -
trunk/BNC/src/bncwindow.h
r9635 r9760 163 163 QLineEdit* _sp3CompLogLineEdit; 164 164 165 QC heckBox* _rnxV2CheckBox;165 QComboBox* _rnxVersComboBox; 166 166 QLineEdit* _rnxV2Priority; 167 QC heckBox* _ephV2CheckBox;167 QComboBox* _ephVersComboBox; 168 168 QCheckBox* _rnxFileCheckBox; 169 169 QLineEdit* _rnxScrpLineEdit; … … 173 173 QComboBox* _ephIntrComboBox; 174 174 QComboBox* _corrIntrComboBox; 175 QComboBox* 176 QComboBox* 177 QComboBox* 175 QComboBox* _rnxSamplComboBox; 176 QComboBox* _rnxSkelExtComboBox; 177 QComboBox* _outSamplComboBox; 178 178 QCheckBox* _rnxAppendCheckBox; 179 179 QCheckBox* _autoStartCheckBox; -
trunk/BNC/src/reqcdlg.cpp
r9158 r9760 95 95 96 96 _reqcRnxVersion->setEditable(false); 97 _reqcRnxVersion->addItems(QString(" 3,2").split(","));97 _reqcRnxVersion->addItems(QString("4,3,2").split(",")); 98 98 _reqcRnxVersion->setMaximumWidth(7*ww); 99 99 -
trunk/BNC/src/rinex/rnxnavfile.h
r9366 r9760 38 38 #define defaultRnxNavVersion2 2.11 39 39 #define defaultRnxNavVersion3 3.05 40 #define defaultRnxNavVersion4 4.00 40 41 41 42 class t_rnxNavFile { -
trunk/BNC/src/rinex/rnxobsfile.cpp
r9640 r9760 164 164 in >> _antBSG[0] >> _antBSG[1] >> _antBSG[2]; 165 165 } 166 else if (key == "DOI") { 167 _digitalObjectId = line.mid(0,60).trimmed(); 168 } 169 else if (key == "LICENSE OF USE") { 170 _licenseOfUse.append(line.mid(0,60).trimmed()); 171 } 172 else if (key == "STATION INFORMATION") { 173 _stationInformation.append(line.mid(0,60).trimmed()); 174 } 166 175 else if (key == "# / TYPES OF OBSERV") { 167 176 if (_version == 0.0) { 168 _version = defaultRnxObsVersion 2;177 _version = defaultRnxObsVersion3; 169 178 } 170 179 QTextStream* in = new QTextStream(value.toLatin1(), QIODevice::ReadOnly); … … 306 315 _markerName = markerName; 307 316 308 if (version <= 2) {317 if (version == 2) { 309 318 _version = defaultRnxObsVersion2; 310 319 } 311 else {320 else if (version == 3) { 312 321 _version = defaultRnxObsVersion3; 322 } 323 else if (version == 4) { 324 _version = defaultRnxObsVersion4; 313 325 } 314 326 … … 389 401 const QStringList* gloSlots) { 390 402 391 if (version <= 2) {403 if (version == 2) { 392 404 _version = defaultRnxObsVersion2; 393 405 } 394 else {406 else if (version == 3) { 395 407 _version = defaultRnxObsVersion3; 408 } 409 else if (version == 4) { 410 _version = defaultRnxObsVersion4; 396 411 } 397 412 _interval = header._interval; … … 914 929 return t_rnxObsFile::type3to2(sys, origType); 915 930 } 916 else if (int(version) == 3){931 else { 917 932 return t_rnxObsFile::type2to3(sys, origType); 918 933 } -
trunk/BNC/src/rinex/rnxobsfile.h
r9396 r9760 40 40 #define defaultRnxObsVersion2 2.11 41 41 #define defaultRnxObsVersion3 3.05 42 #define defaultRnxObsVersion4 4.00 42 43 43 44 class t_rnxObsHeader { … … 80 81 QString _markerName; 81 82 QString _markerNumber; 83 82 84 QString _markerType; 83 85 QString _observer; … … 86 88 QString _receiverType; 87 89 QString _receiverVersion; 90 QString _digitalObjectId; 91 QStringList _licenseOfUse; 92 QStringList _stationInformation; 88 93 QStringList _comments; 89 94 ColumnVector _antNEU; … … 162 167 const QString& receiverType() const {return _header._receiverType;} 163 168 const QString& receiverNumber() const {return _header._receiverNumber;} 169 const QString& digitalObjectId() const {return _header._digitalObjectId;} 170 const QStringList licenseOfUse() const {return _header._licenseOfUse;} 171 const QStringList stationInformation() const {return _header._stationInformation;} 164 172 165 173 void setInterval(double interval) {_header._interval = interval;} … … 173 181 void setReceiverType(const QString& receiverType) {_header._receiverType = receiverType;} 174 182 void setReceiverNumber(const QString& receiverNumber) {_header._receiverNumber = receiverNumber;} 183 184 void setDigitalObjectId(const QString& digitalObjectId) {_header._digitalObjectId = digitalObjectId;} 185 void setLicenseOfUse(const QString& licenseOfUse) {_header._licenseOfUse.append(licenseOfUse);} 186 void setStationInformation(const QString& stationInformation) {_header._stationInformation.append(stationInformation);} 175 187 176 188 const ColumnVector& xyz() const {return _header._xyz;}
Note:
See TracChangeset
for help on using the changeset viewer.