GCS_MAVLink: remove MOUNT_CONFIGURE/MOUNT_CONTROL handling by default

This commit is contained in:
Peter Barker 2024-06-06 09:43:58 +10:00 committed by Andrew Tridgell
parent 0dff221a9b
commit d250d9cb2b
1 changed files with 6 additions and 2 deletions

View File

@ -65,12 +65,16 @@
#define AP_MAVLINK_MSG_HIL_GPS_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 HAL_GCS_ENABLED
#define AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED 0
#endif
#ifndef AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED
#define AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED HAL_GCS_ENABLED
#define AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED 0
#endif
// this is for both read and write messages: