From 2868128847e68703d1242726ee5b50e9918a986e Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 18 Jul 2021 18:36:06 +0100 Subject: [PATCH] AP_Vehicle: #ifdef scripting specific functions --- libraries/AP_Vehicle/AP_Vehicle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index f001a5cfff..23b2a55f28 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -178,6 +178,7 @@ public: // returns true if the vehicle has crashed virtual bool is_crashed() const; +#ifdef ENABLE_SCRIPTING /* methods to control vehicle for use by scripting */ @@ -192,6 +193,8 @@ public: // set steering and throttle (-1 to +1) (for use by scripting with Rover) virtual bool set_steering_and_throttle(float steering, float throttle) { return false; } +#endif // ENABLE_SCRIPTING + // control outputs enumeration enum class ControlOutput {