diff --git a/src/input/JoystickInput.h b/src/input/JoystickInput.h index 682ee8a36ea79c9ba755b2c8fc08f60fbf0a4fd7..8e833060e29ac998b6024b23bf82c4cbe4a429ac 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 fe729d9601b3f7792166bc644fbc9cbd7c590ab0..492f2f182a76ac8598d0e13768c4c86e17569d33 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) {