AP_Mount: Remove handler for DO_SET_ROI_NONE

This commit is contained in:
Nick Exton 2023-10-16 15:06:56 +11:00 committed by Randy Mackay
parent 57cead9052
commit 5b28086131
2 changed files with 0 additions and 11 deletions

View File

@ -505,12 +505,6 @@ MAV_RESULT AP_Mount::handle_command_do_set_roi_sysid(const mavlink_command_int_t
return MAV_RESULT_ACCEPTED;
}
MAV_RESULT AP_Mount::handle_command_do_set_roi_none()
{
set_mode_to_default();
return MAV_RESULT_ACCEPTED;
}
MAV_RESULT AP_Mount::handle_command(const mavlink_command_int_t &packet, const mavlink_message_t &msg)
{
switch (packet.command) {
@ -524,8 +518,6 @@ MAV_RESULT AP_Mount::handle_command(const mavlink_command_int_t &packet, const m
return handle_command_do_gimbal_manager_configure(packet, msg);
case MAV_CMD_DO_SET_ROI_SYSID:
return handle_command_do_set_roi_sysid(packet);
case MAV_CMD_DO_SET_ROI_NONE:
return handle_command_do_set_roi_none();
default:
return MAV_RESULT_UNSUPPORTED;
}

View File

@ -181,9 +181,6 @@ public:
// handling of set_roi_sysid message
MAV_RESULT handle_command_do_set_roi_sysid(const mavlink_command_int_t &packet);
// handling of set_roi_none message
MAV_RESULT handle_command_do_set_roi_none();
// mavlink message handling:
MAV_RESULT handle_command(const mavlink_command_int_t &packet, const mavlink_message_t &msg);
void handle_param_value(const mavlink_message_t &msg);