diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 76a04112af9c8944e24ddfe59495e9325781e1b0..a77411a05fe602f35e48b56b47c8a498b1d959d7 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1327,6 +1327,8 @@ QImage UAS::getImage() { #ifdef MAVLINK_ENABLED_PIXHAWK image.loadFromData(imageRecBuffer); + // Restart statemachine + imagePacketsArrived = 0; return image; #endif diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index 989833276ad5de56d3e466c6c36e0c3cba8b8f8c..2f6eb2da9a29b2341989b887fac0ec1cef1a1d38 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -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()));