From 5fc3fde9e247a6c5ce4c5011b631570cafc702e8 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Thu, 17 Jul 2014 16:07:16 +0200 Subject: [PATCH] joystick: fix slot interface and remove debug output --- src/input/JoystickInput.h | 2 +- src/uas/UAS.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/input/JoystickInput.h b/src/input/JoystickInput.h index 682ee8a36e..8e833060e2 100644 --- a/src/input/JoystickInput.h +++ b/src/input/JoystickInput.h @@ -366,7 +366,7 @@ public slots: * @brief Specify which setpoints should be sent to the UAS when moving the joystick * @param newMode the mode (setpoint type) see the JOYSTICK_MODE enum */ - void setMode(quint8 newMode) + void setMode(int newMode) { mode = (JOYSTICK_MODE)newMode; } diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index fe729d9601..492f2f182a 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2978,7 +2978,6 @@ void UAS::setExternalControlSetpoint(float roll, float pitch, float yaw, float t manualButtons = buttons; mavlink_message_t message; - qDebug() << "js mode" << joystickMode; if (joystickMode == JoystickInput::JOYSTICK_MODE_ATTITUDE) { -- GitLab