From fba1710fbfad5b390f95ac2623f8f8f89ebf731a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 29 Jan 2022 22:19:14 +1100 Subject: [PATCH] Rover: provide default implemenation of handle_change_alt_request The TODO items to actually implement these are almost 6 years old. Since then these methods have been burning space. This doesn't even make sense for several vehicles, so a default implementation which does nothing seems OK. --- Rover/GCS_Mavlink.cpp | 5 ----- Rover/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index db6904cc51..8bcf27275d 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -565,11 +565,6 @@ bool GCS_MAVLINK_Rover::handle_guided_request(AP_Mission::Mission_Command &cmd) return rover.mode_guided.set_desired_location(cmd.content.location); } -void GCS_MAVLINK_Rover::handle_change_alt_request(AP_Mission::Mission_Command &cmd) -{ - // nothing to do -} - MAV_RESULT GCS_MAVLINK_Rover::_handle_command_preflight_calibration(const mavlink_command_long_t &packet) { if (is_equal(packet.param6, 1.0f)) { diff --git a/Rover/GCS_Mavlink.h b/Rover/GCS_Mavlink.h index ec0cbb9a90..2b900f2f6d 100644 --- a/Rover/GCS_Mavlink.h +++ b/Rover/GCS_Mavlink.h @@ -35,7 +35,6 @@ private: void handleMessage(const mavlink_message_t &msg) override; bool handle_guided_request(AP_Mission::Mission_Command &cmd) override; - void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override; bool try_send_message(enum ap_message id) override; void handle_manual_control(const mavlink_message_t &msg);