Changeset 9599 in ntrip for trunk/BNC/src/pppRun.cpp


Ignore:
Timestamp:
Jan 13, 2022, 5:05:06 PM (2 years ago)
Author:
stuerze
Message:

additional iono mountpoint added for ppp

File:
1 edited

Legend:

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

    r9550 r9599  
    130130    _rnxNavFile = 0;
    131131    _corrFile   = 0;
     132    _ionoFile   = 0;
    132133    _speed      = settings.value("PPP/mapSpeedSlider").toInt();
    133134    connect(this, SIGNAL(progressRnxPPP(int)), BNC_CORE, SIGNAL(progressRnxPPP(int)));
     
    422423
    423424  if (_opt->_realTime) {
    424     if (_opt->_corrMount.empty() || _opt->_corrMount != vTec._staID) {
    425       return;
    426     }
    427   }
    428 
     425    if (_opt->_ionoMount.empty() && _opt->_corrMount.empty()) {
     426      return;
     427    }
     428    if ( _opt->_ionoMount.empty() &&
     429        !_opt->_corrMount.empty() && _opt->_corrMount != vTec._staID) {
     430      return;
     431    }
     432    if (!_opt->_ionoMount.empty() && _opt->_ionoMount != vTec._staID) {
     433      return;
     434    }
     435  }
    429436  _pppClient->putTec(&vTec);
    430437}
     
    555562  }
    556563
     564  if (!_opt->_ionoFile.empty()) {
     565    _ionoFile = new t_corrFile(QString(_opt->_corrFile.c_str()));
     566    connect(_ionoFile, SIGNAL(newTec(t_vTec)),
     567            this, SLOT(slotNewTec(t_vTec)));
     568  }
     569
    557570  // Read/Process Observations
    558571  // -------------------------
     
    583596      catch (...) {
    584597        emit newMessage("unknown exceptions in corrFile", true);
     598        break;
     599      }
     600    }
     601
     602    // Get Additional VTEC Informations
     603    // --------------------------------
     604    if (_ionoFile) {
     605      try {
     606        _ionoFile->syncRead(epo->tt);
     607      }
     608      catch (const char* msg) {
     609        emit newMessage(QByteArray(msg), true);
     610        break;
     611      }
     612      catch (const string& msg) {
     613        emit newMessage(QByteArray(msg.c_str()), true);
     614        break;
     615      }
     616      catch (...) {
     617        emit newMessage("unknown exceptions in ionoFile", true);
    585618        break;
    586619      }
Note: See TracChangeset for help on using the changeset viewer.