- Timestamp:
- Feb 24, 2011, 12:32:17 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncapp.cpp ¶
r3004 r3027 117 117 _GLOFreq[ii] = 0; 118 118 } 119 120 _bncPPPclient = 0; 119 121 } 120 122 -
TabularUnified trunk/BNC/bncapp.h ¶
r2909 r3027 35 35 36 36 class bncComb; 37 class bncPPPclient; 37 38 38 39 class bncApp : public QApplication { … … 120 121 int _GLOFreq[PRN_GLONASS_NUM]; 121 122 bncComb* _bncComb; 123 public: 124 bncPPPclient* _bncPPPclient; 122 125 }; 123 126 #endif -
TabularUnified trunk/BNC/bncgetthread.cpp ¶
r3003 r3027 282 282 if (settings.value("pppMount").toString() == _staID) { 283 283 _PPPclient = new bncPPPclient(_staID); 284 app->_bncPPPclient = _PPPclient; 284 285 qRegisterMetaType<bncTime>("bncTime"); 285 286 connect(_PPPclient, SIGNAL(newPosition(bncTime, double, double, double)), -
TabularUnified trunk/BNC/combination/bnccomb.cpp ¶
r3025 r3027 24 24 #include "bncmodel.h" 25 25 #include "bncutils.h" 26 #include "bncpppclient.h" 26 27 27 28 using namespace std; … … 336 337 } 337 338 338 // Emit new Corrections 339 // -------------------- 340 co.messageType = COTYPE_GPSCOMBINED; 341 QStringList asciiLines = 342 RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(), resTime.gpssec(), co, 0); 343 344 long coTime = resTime.gpsw() * 7*24*3600 + long(floor(resTime.gpssec()+0.5)); 345 QStringListIterator il(asciiLines); 346 while (il.hasNext()) { 347 QString line = il.next(); 348 emit newCorrLine(line, _caster->mountpoint(), coTime); 339 // Optionall send new Corrections to PPP client 340 // -------------------------------------------- 341 bncApp* app = (bncApp*) qApp; 342 if (app->_bncPPPclient) { 343 QStringList corrLines; 344 co.messageType = COTYPE_GPSCOMBINED; 345 QStringListIterator il(RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(), 346 resTime.gpssec(), co, 0)); 347 while (il.hasNext()) { 348 QString line = il.next() + " " + _caster->mountpoint(); 349 corrLines << line; 350 } 351 352 app->_bncPPPclient->slotNewCorrections(corrLines); 349 353 } 350 354 } -
TabularUnified trunk/BNC/combination/bnccomb.h ¶
r3024 r3027 34 34 signals: 35 35 void newMessage(QByteArray msg, bool showOnScreen); 36 void newCorrLine(QString line, QString staID, long coTime);37 36 38 37 private:
Note:
See TracChangeset
for help on using the changeset viewer.