From d9eabcf411ee590e7ba756e5348c54dde7545660 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 7351b84301..97246dda8f 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -169,10 +169,10 @@ public: // 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