Changeset 9158 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Oct 1, 2020, 3:19:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r9107 r9158 116 116 _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool(); 117 117 118 _rnxV 3 = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) ? true : false;118 _rnxV2 = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked) ? true : false; 119 119 } 120 120 … … 249 249 //////////////////////////////////////////////////////////////////////////// 250 250 QString bncRinex::nextEpochStr(const QDateTime& datTim, 251 const QString& intStr, bool rnxV 3,251 const QString& intStr, bool rnxV2, 252 252 QDateTime* nextEpoch) { 253 253 … … 261 261 if ( indHlp != -1) { 262 262 int step = intStr.left(indHlp-1).toInt(); 263 if ( rnxV3) {263 if (!rnxV2) { 264 264 epoStr += QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0')); // H 265 265 } else { … … 288 288 } 289 289 } 290 if ( rnxV3) {290 if (!rnxV2) { 291 291 epoStr += QString("_%1M").arg(step, 2, 10, QChar('0')); // period 292 292 } … … 294 294 else if (intStr == "1 hour") { 295 295 int step = intStr.left(indHlp-1).toInt(); 296 if ( rnxV3) {296 if (!rnxV2) { 297 297 epoStr += QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0')); // H 298 298 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // M … … 312 312 else { 313 313 int step = intStr.left(indHlp-1).toInt(); 314 if ( rnxV3) {314 if (!rnxV2) { 315 315 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // H 316 316 epoStr += QString("%1").arg(0, 2, 10, QChar('0')); // M … … 343 343 344 344 QString hlpStr = nextEpochStr(datTim, settings.value("rnxIntr").toString(), 345 _rnxV 3, &_nextCloseEpoch);345 _rnxV2, &_nextCloseEpoch); 346 346 347 347 int n = _statID.size(); … … 380 380 } 381 381 382 if ( _rnxV3) {382 if (!_rnxV2) { 383 383 QString country; 384 384 QString monNum = "0"; … … 428 428 // Set RINEX Version 429 429 // ----------------- 430 int intHeaderVers = (Qt::CheckState(settings.value("rnxV 3").toInt()) == Qt::Checked ? 3 : 2);430 int intHeaderVers = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked ? 2 : 3); 431 431 432 432 // Open the Output File
Note:
See TracChangeset
for help on using the changeset viewer.