From a6336ce3bedebcabc9236c6fa42b820da5f3a3f7 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Wed, 17 Jun 2015 20:23:52 +0200 Subject: [PATCH] fire change event in any case --- src/uas/UAS.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 957bc5004..e4f53eef0 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2580,11 +2580,11 @@ void UAS::setExternalControlSetpoint(float roll, float pitch, float yaw, float t // Send the MANUAL_COMMAND message mavlink_message_t message; mavlink_msg_manual_control_pack(mavlink->getSystemId(), mavlink->getComponentId(), &message, this->uasId, newPitchCommand, newRollCommand, newThrustCommand, newYawCommand, buttons); - sendMessage(message); - - // Emit an update in control values to other UI elements, like the HSI display - emit attitudeThrustSetPointChanged(this, roll, pitch, yaw, thrust, QGC::groundTimeMilliseconds()); } + + sendMessage(message); + // Emit an update in control values to other UI elements, like the HSI display + emit attitudeThrustSetPointChanged(this, roll, pitch, yaw, thrust, QGC::groundTimeMilliseconds()); } } #endif -- 2.22.0