From 24a5f57b450191201a82ec0dc9433804e69d7dfd Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 29 Jan 2022 22:19:14 +1100 Subject: [PATCH] Blimp: 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. --- Blimp/GCS_Mavlink.cpp | 8 -------- Blimp/GCS_Mavlink.h | 1 - 2 files changed, 9 deletions(-) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index f5c26bffe0..693cabbb6e 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -383,14 +383,6 @@ bool GCS_MAVLINK_Blimp::handle_guided_request(AP_Mission::Mission_Command &cmd) // #endif } -void GCS_MAVLINK_Blimp::handle_change_alt_request(AP_Mission::Mission_Command &cmd) -{ - // add home alt if needed - if (cmd.content.location.relative_alt) { - cmd.content.location.alt += blimp.ahrs.get_home().alt; - } -} - void GCS_MAVLINK_Blimp::packetReceived(const mavlink_status_t &status, const mavlink_message_t &msg) { diff --git a/Blimp/GCS_Mavlink.h b/Blimp/GCS_Mavlink.h index 241b9e6c04..901631fa9b 100644 --- a/Blimp/GCS_Mavlink.h +++ b/Blimp/GCS_Mavlink.h @@ -48,7 +48,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 packetReceived(const mavlink_status_t &status,