diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index ab16e36b7c0e1100bb771909c8905031dc030532..5abecb5248f9abd1e76ff23078ced08444de6ba2 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2584,13 +2584,12 @@ void UAS::setExternalControlSetpoint(float roll, float pitch, float yaw, float t const float newThrustCommand = thrust * axesScaling; // 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