- Timestamp:
- Oct 23, 2012, 10:42:42 AM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTRover/bncrtrover.cpp
r4761 r4763 14 14 // Constructor 15 15 //////////////////////////////////////////////////////////////////////////// 16 t_bncRtrover::t_bncRtrover() { 17 18 bncSettings settings; 19 20 // Processed Station, Corrections Source 21 // ------------------------------------- 22 _pppCorrMount = settings.value("pppCorrMount").toString(); 23 24 // Define Input Options 25 // -------------------- 26 rtrover_opt opt; 27 rtrover_setOptions(&opt); 28 29 // Connect to BNC Signals 30 // ---------------------- 31 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)), 32 this, SLOT(slotNewCorrections(QList<QString>))); 33 34 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)), 35 this, SLOT(slotNewEphGPS(gpsephemeris))); 36 37 connect(((bncApp*)qApp), SIGNAL(newEphGlonass(glonassephemeris)), 38 this, SLOT(slotNewEphGlonass(glonassephemeris))); 39 40 connect(((bncApp*)qApp), SIGNAL(newEphGalileo(galileoephemeris)), 41 this, SLOT(slotNewEphGalileo(galileoephemeris))); 16 t_bncRtrover::t_bncRtrover() : QThread(0) { 17 42 18 } 43 19 … … 51 27 } 52 28 rtrover_destroy(); 29 } 30 31 // Run (virtual) 32 //////////////////////////////////////////////////////////////////////////// 33 void t_bncRtrover::run() { 34 bncSettings settings; 35 36 // Processed Station, Corrections Source 37 // ------------------------------------- 38 _pppCorrMount = settings.value("pppCorrMount").toString(); 39 40 // Define Input Options 41 // -------------------- 42 rtrover_opt opt; 43 rtrover_setOptions(&opt); 44 45 // Connect to BNC Signals 46 // ---------------------- 47 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)), 48 this, SLOT(slotNewCorrections(QList<QString>))); 49 50 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)), 51 this, SLOT(slotNewEphGPS(gpsephemeris))); 52 53 connect(((bncApp*)qApp), SIGNAL(newEphGlonass(glonassephemeris)), 54 this, SLOT(slotNewEphGlonass(glonassephemeris))); 55 56 connect(((bncApp*)qApp), SIGNAL(newEphGalileo(galileoephemeris)), 57 this, SLOT(slotNewEphGalileo(galileoephemeris))); 53 58 } 54 59 … … 201 206 // 202 207 //////////////////////////////////////////////////////////////////////////// 203 void t_bncRtrover:: putNewObs(const t_obs&obsIn) {208 void t_bncRtrover::slotNewObs(QByteArray staID, bool firstObs, t_obs obsIn) { 204 209 QMutexLocker locker(&_mutex); 205 210 -
trunk/BNC/src/RTRover/bncrtrover.h
r4758 r4763 7 7 #include "bncephuser.h" 8 8 9 class t_bncRtrover : QObject{9 class t_bncRtrover : public QThread { 10 10 Q_OBJECT 11 11 … … 13 13 t_bncRtrover(); 14 14 ~t_bncRtrover(); 15 v oid putNewObs(const t_obs& pp);15 virtual void run(); 16 16 17 17 public slots: … … 20 20 void slotNewEphGalileo(galileoephemeris galeph); 21 21 void slotNewCorrections(QList<QString> corrList); 22 void slotNewObs(QByteArray staID, bool firstObs, t_obs obs); 22 23 23 24 private: -
trunk/BNC/src/bnccaster.cpp
r4536 r4763 52 52 #include "bncsettings.h" 53 53 #include "RTCM/GPSDecoder.h" 54 #ifdef RTROVER_INTERFACE 55 # include "RTRover/bncrtrover.h" 56 #endif 54 57 55 58 using namespace std; … … 131 134 _lastDumpSec = 0; 132 135 _confInterval = -1; 136 #ifdef RTROVER_INTERFACE 137 _bncRtrover = new t_bncRtrover(); 138 _bncRtrover->start(); 139 #endif 133 140 } 134 141 … … 267 274 connect(getThread, SIGNAL(newObs(QByteArray, bool, t_obs)), 268 275 this, SLOT(newObs(QByteArray, bool, t_obs))); 276 277 #ifdef RTROVER_INTERFACE 278 connect(getThread, SIGNAL(newObs(QByteArray, bool, t_obs)), 279 _bncRtrover, SLOT(slotNewObs(QByteArray, bool, t_obs))); 280 #endif 269 281 270 282 connect(getThread, SIGNAL(getThreadFinished(QByteArray)), -
trunk/BNC/src/bnccaster.h
r4278 r4763 33 33 34 34 class bncGetThread; 35 #ifdef RTROVER_INTERFACE 36 class t_bncRtrover; 37 #endif 35 38 36 39 class bncCaster : public QObject { … … 81 84 QMutex _mutex; 82 85 int _confInterval; 86 #ifdef RTROVER_INTERFACE 87 t_bncRtrover* _bncRtrover; 88 #endif 83 89 }; 84 90 -
trunk/BNC/src/bncgetthread.cpp
r4757 r4763 63 63 #include "latencychecker.h" 64 64 #include "bncpppclient.h" 65 #ifdef RTROVER_INTERFACE66 #include "RTRover/bncrtrover.h"67 #endif68 65 #include "upload/bncrtnetdecoder.h" 69 66 #include "RTCM/RTCM2Decoder.h" … … 133 130 _nextSleep = 0; 134 131 _PPPclient = 0; 135 #ifdef RTROVER_INTERFACE136 _bncRtrover = 0;137 #endif138 132 _miscMount = settings.value("miscMount").toString(); 139 133 _decoder = 0; … … 345 339 connect(_PPPclient, SIGNAL(newNMEAstr(QByteArray)), 346 340 this, SIGNAL(newNMEAstr(QByteArray))); 347 #ifdef RTROVER_INTERFACE348 _bncRtrover = new t_bncRtrover();349 #endif350 341 } 351 342 #endif … … 379 370 } 380 371 delete _PPPclient; 381 #ifdef RTROVER_INTERFACE382 delete _bncRtrover;383 #endif384 372 if (_rawFile) { 385 373 QMapIterator<QString, GPSDecoder*> it(_decodersRaw); … … 563 551 if (_PPPclient && _staID == _PPPclient->staID()) { 564 552 _PPPclient->putNewObs(obs); 565 #ifdef RTROVER_INTERFACE566 _bncRtrover->putNewObs(obs);567 #endif568 553 } 569 554 #endif -
trunk/BNC/src/bncgetthread.h
r4757 r4763 41 41 class latencyChecker; 42 42 class bncPPPclient; 43 #ifdef RTROVER_INTERFACE44 class t_bncRtrover;45 #endif46 43 47 44 class bncGetThread : public QThread { … … 128 125 bool _rawOutput; 129 126 QMap<QString, long> _prnLastEpo; 130 #ifdef RTROVER_INTERFACE131 t_bncRtrover* _bncRtrover;132 #endif133 127 QMap<char, QVector<QString> > _rnxTypes; 134 128 };
Note:
See TracChangeset
for help on using the changeset viewer.