From c12a014515d97aadb794cec9b185b0765e7110f8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Jan 2025 19:17:16 +1100 Subject: [PATCH] GCS_MAVLink: remove MOUNT_CONFIGURE and MOUNT_CONTROL support --- libraries/GCS_MAVLink/GCS_Common.cpp | 12 ------------ libraries/GCS_MAVLink/GCS_config.h | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 8fb6bc3f8f40b..83eb282ac0274 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -4284,18 +4284,6 @@ void GCS_MAVLINK::handle_message(const mavlink_message_t &msg) #endif #if HAL_MOUNT_ENABLED -#if AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED - case MAVLINK_MSG_ID_MOUNT_CONFIGURE: // deprecated. Use MAV_CMD_DO_MOUNT_CONFIGURE - send_received_message_deprecation_warning("MOUNT_CONFIGURE"); - handle_mount_message(msg); - break; -#endif -#if AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED - case MAVLINK_MSG_ID_MOUNT_CONTROL: // deprecated. Use MAV_CMD_DO_MOUNT_CONTROL - send_received_message_deprecation_warning("MOUNT_CONTROL"); - handle_mount_message(msg); - break; -#endif case MAVLINK_MSG_ID_GIMBAL_REPORT: case MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION: case MAVLINK_MSG_ID_GIMBAL_DEVICE_ATTITUDE_STATUS: diff --git a/libraries/GCS_MAVLink/GCS_config.h b/libraries/GCS_MAVLink/GCS_config.h index 8a297bb003f1e..24ea13a942dbb 100644 --- a/libraries/GCS_MAVLink/GCS_config.h +++ b/libraries/GCS_MAVLink/GCS_config.h @@ -71,18 +71,6 @@ #define AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED 0 #endif -// CODE_REMOVAL -// ArduPilot 4.5 sends deprecation warnings for MOUNT_CONTROL/MOUNT_CONFIGURE -// ArduPilot 4.6 stops compiling them in -// ArduPilot 4.7 removes the code entirely -#ifndef AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED -#define AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED 0 -#endif - -#ifndef AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED -#define AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED 0 -#endif - // this is for both read and write messages: #ifndef AP_MAVLINK_MSG_DEVICE_OP_ENABLED #define AP_MAVLINK_MSG_DEVICE_OP_ENABLED HAL_GCS_ENABLED