mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: add build options for deprecated messages MOUNT_CONTROL/MOUNT_CONFIGURE
these are repalced by the command equivalents
This commit is contained in:
parent
02d0a07083
commit
92192a7510
|
@ -3948,14 +3948,18 @@ void GCS_MAVLINK::handle_common_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:
|
||||
|
|
|
@ -53,3 +53,11 @@
|
|||
#ifndef AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED
|
||||
#define AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED HAL_GCS_ENABLED && HAL_RALLY_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED
|
||||
#define AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED HAL_GCS_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED
|
||||
#define AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED HAL_GCS_ENABLED
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue