Changeset 7972 in ntrip


Ignore:
Timestamp:
Jun 29, 2016, 3:04:13 PM (8 years ago)
Author:
stuerze
Message:

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

Location:
trunk/BNC/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r7927 r7972  
    6363    _antex = 0;
    6464  }
    65 
     65/*
     66  if (!_opt->_blqFileName.empty()) {
     67    _loading = new t_loading(_opt->_blqFileName.c_str());
     68  }
     69  else {
     70    _loading = 0;
     71  }
     72*/
    6673  CLIENTS.setLocalData(this);  // CLIENTS takes ownership over "this"
    6774}
     
    8087  delete _filter;
    8188  delete _tides;
     89  /*
     90  if (_loading) {
     91    delete _loading;
     92  }
     93  */
    8294  clearObs();
    8395}
     
    565577}
    566578
     579//
     580//////////////////////////////////////////////////////////////////////////////
     581void t_pppClient::reset() {
     582
     583  // to delete all parameters
     584  delete _filter;
     585  _filter   = new t_pppFilter();
     586
     587  // to delete old orbit and clock corrections
     588  delete _ephPool;
     589  _ephPool  = new t_pppEphPool();
     590
     591  // to delete old code biases
     592  delete _obsPool;
     593  _obsPool  = new t_pppObsPool();
     594}
  • trunk/BNC/src/PPP/pppClient.h

    r7288 r7972  
    4545  static t_pppClient* instance();
    4646
     47  void reset();
     48
    4749 private:
    4850  void initOutput(t_output* output);
     
    6971  t_pppOptions*             _opt;
    7072  t_tides*                  _tides;
     73//  t_loading*                _loading;
    7174};
    7275
  • trunk/BNC/src/PPP_SSR_I/pppClient.cpp

    r7929 r7972  
    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}
  • trunk/BNC/src/PPP_SSR_I/pppClient.h

    r7609 r7972  
    5252  std::ostringstream& log() {return *_log;}
    5353  const t_pppOptions* opt() const {return _opt;}
     54  void                reset();
    5455
    5556 private:
  • trunk/BNC/src/pppRun.cpp

    r7943 r7972  
    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  return '$' + nmStr + QString("*%1\n").arg(int(XOR), 0, 16).toUpper();
    679682}
     683
     684//
     685////////////////////////////////////////////////////////////////////////////
     686void t_pppRun::slotProviderIDChanged(QString mountPoint) {
     687  QMutexLocker locker(&_mutex);
     688
     689  if (mountPoint.toStdString() !=_opt->_corrMount) {
     690    return;
     691  }
     692
     693  QString msg = "pppRun " + QString(_opt->_roverName.c_str()) + ": Provider Changed: " + mountPoint;
     694  emit newMessage(msg.toAscii(), true);
     695
     696  _pppClient->reset();
     697
     698  while (!_epoData.empty()) {
     699    delete _epoData.front();
     700    _epoData.pop_front();
     701  }
     702}
  • trunk/BNC/src/pppRun.h

    r7943 r7972  
    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.