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


Ignore:
Timestamp:
Aug 18, 2015, 4:13:05 PM (9 years ago)
Author:
stuerze
Message:

some interfaces are added to be able to handle ssr vtec in PPP mode

File:
1 edited

Legend:

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

    r7169 r7231  
    101101            this, SLOT(slotNewBDSEph(t_ephBDS)),conType);
    102102
     103    connect(BNC_CORE, SIGNAL(newTec(t_vTec)),
     104            this, SLOT(slotNewTec(t_vTec)),conType);
     105
    103106    connect(BNC_CORE, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
    104107            this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)),conType);
     
    315318  }
    316319}
    317    
     320
     321//
     322////////////////////////////////////////////////////////////////////////////
     323void t_pppRun::slotNewTec(t_vTec vTec) {
     324  if (vTec._layers.size() == 0) {
     325    return;
     326  }
     327
     328  if (_opt->_realTime) {
     329    if (_opt->_corrMount.empty() || _opt->_corrMount != vTec._staID) {
     330      return;
     331    }
     332  }
     333
     334  _pppClient->putTec(&vTec);
     335}
     336
    318337//
    319338////////////////////////////////////////////////////////////////////////////
     
    393412  if (!_opt->_corrFile.empty()) {
    394413    _corrFile = new t_corrFile(QString(_opt->_corrFile.c_str()));
     414    connect(_corrFile, SIGNAL(newTec(t_vTec)),
     415            this, SLOT(slotNewTec(t_vTec)));
    395416    connect(_corrFile, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
    396417            this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)));
Note: See TracChangeset for help on using the changeset viewer.