Changeset 3558 in ntrip
- Timestamp:
- Dec 24, 2011, 8:30:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r3549 r3558 285 285 _format.indexOf("RTCM 3") != -1 ) { 286 286 emit(newMessage(_staID + ": Get data in RTCM 3.x format", true)); 287 _decoders[_staID] = new RTCM3Decoder(_staID, _rawFile); 288 connect((RTCM3Decoder*) decoder(), SIGNAL(newMessage(QByteArray,bool)), 287 RTCM3Decoder* newDecoder = new RTCM3Decoder(_staID, _rawFile); 288 _decoders[_staID] = newDecoder; 289 connect((RTCM3Decoder*) newDecoder, SIGNAL(newMessage(QByteArray,bool)), 289 290 this, SIGNAL(newMessage(QByteArray,bool))); 290 291 } … … 313 314 msleep(100); //sleep 0.1 sec 314 315 315 if (decoder()) { 316 decoder()->initRinex(_staID, _mountPoint, _latitude, _longitude, 317 _nmea, _ntripVersion); 318 316 if (_decoders.contains(_staID)) { 317 _decoders[_staID]->initRinex(_staID, _mountPoint, _latitude, _longitude, 318 _nmea, _ntripVersion); 319 } 320 else { 321 emit(newMessage(_staID + ": no decoder initialized " + _format, true)); 322 _isToBeDeleted = true; 323 return failure; 319 324 } 320 325 … … 342 347 GPSDecoder* bncGetThread::decoder() { 343 348 if (_decoders.contains(_staID) || initDecoder() == success) { 344 return _decoders .value(_staID);349 return _decoders[_staID]; 345 350 } 346 351 else { … … 642 647 void bncGetThread::scanRTCM() { 643 648 649 if (!decoder()) { 650 return; 651 } 652 644 653 bncSettings settings; 645 654 if ( Qt::CheckState(settings.value("scanRTCM").toInt()) == Qt::Checked ) { … … 746 755 ////////////////////////////////////////////////////////////////////////////// 747 756 void bncGetThread::slotNewEphGPS(gpsephemeris gpseph) { 757 758 if (!decoder()) { 759 return; 760 } 761 748 762 RTCM2Decoder* decoder2 = dynamic_cast<RTCM2Decoder*>(decoder()); 749 763 RTCM3Decoder* decoder3 = dynamic_cast<RTCM3Decoder*>(decoder());
Note:
See TracChangeset
for help on using the changeset viewer.