From d78e96cc6bb1bc8a1fa437b341a4526a4d663b75 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 3 Apr 2024 21:40:30 +1100 Subject: [PATCH] AP_Vehicle: move handling of DO_SET_HOME up to GCS_MAVLink base class --- libraries/AP_Vehicle/AP_Vehicle.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 6395cab877..725b1a2e11 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -289,6 +289,11 @@ public: */ virtual bool get_rate_ef_targets(Vector3f& rate_ef_targets) const { return false; } +#if AP_AHRS_ENABLED + virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED = 0; + virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED = 0; +#endif + protected: virtual void init_ardupilot() = 0;