Commit 07c61b8d authored by pixhawk's avatar pixhawk

bugfixes for image transmission

parent 6c69332d
......@@ -1327,6 +1327,8 @@ QImage UAS::getImage()
{
#ifdef MAVLINK_ENABLED_PIXHAWK
image.loadFromData(imageRecBuffer);
// Restart statemachine
imagePacketsArrived = 0;
return image;
#endif
......
......@@ -165,7 +165,7 @@ HUD::HUD(int width, int height, QWidget* parent)
// Refresh timer
refreshTimer->setInterval(updateInterval);
imageTimer->setInterval(1);
imageTimer->setInterval(250);
//connect(refreshTimer, SIGNAL(timeout()), this, SLOT(update()));
connect(refreshTimer, SIGNAL(timeout()), this, SLOT(paintHUD()));
connect(imageTimer, SIGNAL(timeout()), this, SLOT(requestNewImage()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment