- Timestamp:
- Nov 21, 2009, 3:35:20 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1999 r2000 47 47 #include "bncutils.h" 48 48 #include "bncsettings.h" 49 #include "bncpppthread.h" 49 50 #include "RTCM/GPSDecoder.h" 50 51 … … 250 251 _staIDs.push_back(getThread->staID()); 251 252 _threads.push_back(getThread); 253 254 bncPPPthread* PPPthread = getThread->PPPthread(); 255 if (PPPthread) { 256 connect(this, SIGNAL(newEpochData(QList<p_obs>)), 257 PPPthread, SLOT(slotNewEpochData(QList<p_obs>))); 258 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)), 259 PPPthread, SLOT(slotNewEphGPS(gpsephemeris))); 260 PPPthread->start(); 261 } 252 262 253 263 getThread->start(); -
trunk/BNC/bncgetthread.cpp
r1973 r2000 63 63 #include "bncsettings.h" 64 64 #include "latencychecker.h" 65 #include "bncpppthread.h" 65 66 66 67 #include "RTCM/RTCM2Decoder.h" … … 122 123 _nextSleep = 0; 123 124 _rawOutFile = 0; 125 _PPPthread = 0; 124 126 125 127 bncSettings settings; … … 289 291 emit(newMessage(_staID + ": Get data in RTCM 2.x format", true)); 290 292 _decoder = new RTCM2Decoder(_staID.data()); 293 _PPPthread = new bncPPPthread(_staID); 291 294 } 292 295 else if (_format.indexOf("RTCM_3") != -1 || _format.indexOf("RTCM3") != -1 || … … 296 299 connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)), 297 300 this, SIGNAL(newMessage(QByteArray,bool))); 301 _PPPthread = new bncPPPthread(_staID); 298 302 } 299 303 else if (_format.indexOf("RTIGS") != -1) { 300 304 emit(newMessage(_staID + ": Get data in RTIGS format", true)); 301 305 _decoder = new RTIGSDecoder(); 306 _PPPthread = new bncPPPthread(_staID); 302 307 } 303 308 else if (_format.indexOf("GPSS") != -1 || _format.indexOf("BNC") != -1) { … … 322 327 //////////////////////////////////////////////////////////////////////////// 323 328 bncGetThread::~bncGetThread() { 329 330 if (_PPPthread) { 331 _PPPthread->terminate(); 332 } 324 333 325 334 if (isRunning()) { -
trunk/BNC/bncgetthread.h
r1974 r2000 39 39 class QextSerialPort; 40 40 class latencyChecker; 41 class bncPPPthread; 41 42 42 43 class bncGetThread : public QThread { … … 72 73 QByteArray longitude() const {return _longitude;} 73 74 QByteArray ntripVersion() const {return _ntripVersion;} 75 bncPPPthread* PPPthread() {return _PPPthread;} 74 76 75 77 signals: … … 121 123 t_serialNMEA _serialNMEA; 122 124 QMutex _mutex; 125 bncPPPthread* _PPPthread; 123 126 }; 124 127
Note:
See TracChangeset
for help on using the changeset viewer.