Changeset 7968 in ntrip for branches


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

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

Location:
branches/BNC_2.12/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/PPP/pppClient.cpp

    r7934 r7968  
    565565}
    566566
     567// Constructor
     568//////////////////////////////////////////////////////////////////////////////
     569void t_pppClient::reset() {
     570
     571  // to delete all parameters
     572  delete _filter;
     573  _filter   = new t_pppFilter();
     574
     575  // to delete old orbit and clock corrections
     576  delete _ephPool;
     577  _ephPool  = new t_pppEphPool();
     578
     579  // to delete old code biases
     580  delete _obsPool;
     581  _obsPool  = new t_pppObsPool();
     582}
  • branches/BNC_2.12/src/PPP/pppClient.h

    r7288 r7968  
    4545  static t_pppClient* instance();
    4646
     47  void reset();
     48
    4749 private:
    4850  void initOutput(t_output* output);
  • branches/BNC_2.12/src/PPP_SSR_I/pppClient.cpp

    r7933 r7968  
    428428  return failure;
    429429}
     430
     431//
     432////////////////////////////////////////////////////////////////////////////
     433void t_pppClient::reset() {
     434
     435  // to delete all parameters
     436  delete _filter;
     437  _filter   = new t_pppFilter(this);
     438
     439  // to delete old orbit and clock corrections
     440  delete _ephUser;
     441  _ephUser  = new bncEphUser(false);
     442
     443  // to delete old code biases
     444  delete _pppUtils;
     445  _pppUtils = new t_pppUtils();
     446
     447}
  • branches/BNC_2.12/src/PPP_SSR_I/pppClient.h

    r7609 r7968  
    5252  std::ostringstream& log() {return *_log;}
    5353  const t_pppOptions* opt() const {return _opt;}
     54  void                reset();
    5455
    5556 private:
  • 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}
  • branches/BNC_2.12/src/pppRun.h

    r7945 r7968  
    4848  void slotSetSpeed(int speed);
    4949  void slotSetStopFlag();
     50  void slotProviderIDChanged(QString mountPoint);
    5051
    5152 private:
Note: See TracChangeset for help on using the changeset viewer.