Changeset 9158 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Oct 1, 2020, 3:19:04 PM (4 years ago)
Author:
stuerze
Message:

the default RINEX version in BNC is changed from version 2 to verision 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r9107 r9158  
    116116  _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool();
    117117
    118   _rnxV3 = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) ? true : false;
     118  _rnxV2 = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked) ? true : false;
    119119}
    120120
     
    249249////////////////////////////////////////////////////////////////////////////
    250250QString bncRinex::nextEpochStr(const QDateTime& datTim,
    251                                const QString& intStr, bool rnxV3,
     251                               const QString& intStr, bool rnxV2,
    252252                               QDateTime* nextEpoch) {
    253253
     
    261261  if ( indHlp != -1) {
    262262    int step = intStr.left(indHlp-1).toInt();
    263     if (rnxV3) {
     263    if (!rnxV2) {
    264264      epoStr +=  QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0')); // H
    265265    } else {
     
    288288      }
    289289    }
    290     if (rnxV3) {
     290    if (!rnxV2) {
    291291      epoStr += QString("_%1M").arg(step, 2, 10, QChar('0'));                // period
    292292    }
     
    294294  else if (intStr == "1 hour") {
    295295    int step = intStr.left(indHlp-1).toInt();
    296     if (rnxV3) {
     296    if (!rnxV2) {
    297297      epoStr += QString("%1").arg(datTim.time().hour(), 2, 10, QChar('0'));  // H
    298298      epoStr += QString("%1").arg(0, 2, 10, QChar('0'));                     // M
     
    312312  else {
    313313    int step = intStr.left(indHlp-1).toInt();
    314     if (rnxV3) {
     314    if (!rnxV2) {
    315315      epoStr += QString("%1").arg(0, 2, 10, QChar('0'));                    // H
    316316      epoStr += QString("%1").arg(0, 2, 10, QChar('0'));                    // M
     
    343343
    344344  QString hlpStr = nextEpochStr(datTim, settings.value("rnxIntr").toString(),
    345                                 _rnxV3, &_nextCloseEpoch);
     345                                _rnxV2, &_nextCloseEpoch);
    346346
    347347  int n = _statID.size();
     
    380380  }
    381381
    382   if (_rnxV3) {
     382  if (!_rnxV2) {
    383383    QString country;
    384384    QString monNum = "0";
     
    428428  // Set RINEX Version
    429429  // -----------------
    430   int intHeaderVers = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked ? 3 : 2);
     430  int intHeaderVers = (Qt::CheckState(settings.value("rnxV2").toInt()) == Qt::Checked ? 2 : 3);
    431431
    432432  // Open the Output File
Note: See TracChangeset for help on using the changeset viewer.