Browse Source

fix receive image datastream bug

QGC4.4
samuezih 12 years ago
parent
commit
9687e65861
  1. 3
      src/uas/UAS.cc

3
src/uas/UAS.cc

@ -1100,6 +1100,8 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
imageWidth = p.width; imageWidth = p.width;
imageHeight = p.height; imageHeight = p.height;
imageStart = QGC::groundTimeMilliseconds(); imageStart = QGC::groundTimeMilliseconds();
imagePacketsArrived = 0;
} }
break; break;
@ -1132,7 +1134,6 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
if ((imagePacketsArrived >= imagePackets)) if ((imagePacketsArrived >= imagePackets))
{ {
// Restart statemachine // Restart statemachine
imagePacketsArrived = 0;
emit imageReady(this); emit imageReady(this);
//qDebug() << "imageReady emitted. all packets arrived"; //qDebug() << "imageReady emitted. all packets arrived";
} }

Loading…
Cancel
Save