From 884a20ded2203a26f9c567d7d458dc26d7db9417 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 31 Jul 2024 13:15:02 +0200 Subject: [PATCH] AP_Vehicle: fix compile when AP_EXTERNAL_CONTROL_ENABLED disabled --- libraries/AP_Vehicle/AP_Vehicle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 7351b8430127b..97246dda8fdba 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -169,10 +169,10 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks { // returns true if the vehicle has crashed virtual bool is_crashed() const; -#if AP_EXTERNAL_CONTROL_ENABLED +#if AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED // Method to control vehicle position for use by external control virtual bool set_target_location(const Location& target_loc) { return false; } -#endif // AP_EXTERNAL_CONTROL_ENABLED +#endif // AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED #if AP_SCRIPTING_ENABLED /* methods to control vehicle for use by scripting