Changeset 5742 in ntrip for trunk/BNC/src/PPP/pppThread.cpp


Ignore:
Timestamp:
Aug 2, 2014, 4:23:36 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5736 r5742  
    7070  cout << _opt->_roverName << " run" << endl;
    7171
    72   _pppRun = new t_pppRun(_opt);
    73   QThread::exec();
    74 
     72  try {
     73    _pppRun = new t_pppRun(_opt);
     74    QThread::exec();
     75  }
     76  catch (const char* msg) {
     77    cout << msg << endl;
     78  }
    7579  cout << _opt->_roverName << " exit" << endl;
    7680}
     
    8084t_pppRun::t_pppRun(const t_options* opt) {
    8185  _opt = opt;
    82 
    83   if (BNC_CORE->caster()) {
     86  if (_opt->_realTime) {
    8487    connect(BNC_CORE->caster(), SIGNAL(newObs(QByteArray, QList<t_obs>)),
    8588            this, SLOT(slotNewObs(QByteArray, QList<t_obs>)));
     
    9699    connect(BNC_CORE, SIGNAL(newCorrections(QStringList)),
    97100            this, SLOT(slotNewCorrections(QStringList)));
     101
     102    _pppClient = new t_pppClient();
     103  }
     104  else {
     105    cout << "t_pppRun: post-processing not yet implemented" << endl;
    98106  }
    99107}
     
    102110////////////////////////////////////////////////////////////////////////////
    103111t_pppRun::~t_pppRun() {
     112  delete _pppClient;
    104113  cout << "~t_pppRun" << endl;
    105114}
     
    110119  QMutexLocker locker(&_mutex);
    111120  cout << _opt->_roverName << " slotNewEphGPS" << endl;
     121  t_ephGPS eph;
     122  eph.set(&gpseph);
     123  _pppClient->putGPSEphemeris(&eph);
    112124}
    113125
Note: See TracChangeset for help on using the changeset viewer.