Changeset 9760 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Jun 9, 2022, 5:10:10 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.