Changeset 5742 in ntrip for trunk/BNC/src/PPP/pppThread.cpp
- Timestamp:
- Aug 2, 2014, 4:23:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppThread.cpp
r5736 r5742 70 70 cout << _opt->_roverName << " run" << endl; 71 71 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 } 75 79 cout << _opt->_roverName << " exit" << endl; 76 80 } … … 80 84 t_pppRun::t_pppRun(const t_options* opt) { 81 85 _opt = opt; 82 83 if (BNC_CORE->caster()) { 86 if (_opt->_realTime) { 84 87 connect(BNC_CORE->caster(), SIGNAL(newObs(QByteArray, QList<t_obs>)), 85 88 this, SLOT(slotNewObs(QByteArray, QList<t_obs>))); … … 96 99 connect(BNC_CORE, SIGNAL(newCorrections(QStringList)), 97 100 this, SLOT(slotNewCorrections(QStringList))); 101 102 _pppClient = new t_pppClient(); 103 } 104 else { 105 cout << "t_pppRun: post-processing not yet implemented" << endl; 98 106 } 99 107 } … … 102 110 //////////////////////////////////////////////////////////////////////////// 103 111 t_pppRun::~t_pppRun() { 112 delete _pppClient; 104 113 cout << "~t_pppRun" << endl; 105 114 } … … 110 119 QMutexLocker locker(&_mutex); 111 120 cout << _opt->_roverName << " slotNewEphGPS" << endl; 121 t_ephGPS eph; 122 eph.set(&gpseph); 123 _pppClient->putGPSEphemeris(&eph); 112 124 } 113 125
Note:
See TracChangeset
for help on using the changeset viewer.