From 64faebd80c42b117bc3d97b661b7ce9faf4f7a0f Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 17 Oct 2012 11:11:02 +0200 Subject: [PATCH] Fix a forgetting in precedent commit adding joystick buttons management --- src/uas/UAS.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index e3511bbf1..afb846af6 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2450,8 +2450,6 @@ void UAS::setManualControlCommands(double roll, double pitch, double yaw, double // If system has manual inputs enabled and is armed if(((mode & MAV_MODE_FLAG_DECODE_POSITION_MANUAL) && (mode & MAV_MODE_FLAG_DECODE_POSITION_SAFETY)) || (mode & MAV_MODE_FLAG_HIL_ENABLED)) { - // XXX FIXME ADD BUTTON SUPPORT - quint16 buttons = 0; mavlink_message_t message; mavlink_msg_manual_control_pack(mavlink->getSystemId(), mavlink->getComponentId(), &message, this->uasId, (float)manualRollAngle, (float)manualPitchAngle, (float)manualThrust, (float)manualYawAngle, buttons); sendMessage(message); -- 2.22.0