Changeset 7968 in ntrip for branches/BNC_2.12/src/pppRun.cpp


Ignore:
Timestamp:
Jun 29, 2016, 2:38:57 PM (6 years ago)
Author:
stuerze
Message:

consideration of provider ID changes in SSR correction streams during PPP processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/pppRun.cpp

    r7945 r7968  
    122122    connect(BNC_CMB, SIGNAL(newClkCorrections(QList<t_clkCorr>)),
    123123            this, SLOT(slotNewClkCorrections(QList<t_clkCorr>)),conType);
     124
     125    connect(BNC_CORE, SIGNAL(providerIDChanged(QString)),
     126            this, SLOT(slotProviderIDChanged(QString)));
    124127  }
    125128  else {
     
    678681}
    679682
     683//
     684////////////////////////////////////////////////////////////////////////////
     685void t_pppRun::slotProviderIDChanged(QString mountPoint) {
     686  QMutexLocker locker(&_mutex);
     687
     688  if (mountPoint.toStdString() !=_opt->_corrMount) {
     689    return;
     690  }
     691
     692  QString msg = "pppRun " + QString(_opt->_roverName.c_str()) + ": Provider Changed: " + mountPoint;
     693  emit newMessage(msg.toAscii(), true);
     694
     695  _pppClient->reset();
     696
     697  while (!_epoData.empty()) {
     698    delete _epoData.front();
     699    _epoData.pop_front();
     700  }
     701
     702}
Note: See TracChangeset for help on using the changeset viewer.