From 37911a77272e06bb7a122bca7af7a4948d8a6f35 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 18 Jul 2021 18:36:47 +0100 Subject: [PATCH] Rover: #ifdef scripting specific functions --- Rover/Rover.cpp | 2 ++ Rover/Rover.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Rover/Rover.cpp b/Rover/Rover.cpp index 708464447a..6d0684003a 100644 --- a/Rover/Rover.cpp +++ b/Rover/Rover.cpp @@ -135,6 +135,7 @@ Rover::Rover(void) : { } +#ifdef ENABLE_SCRIPTING // set target location (for use by scripting) bool Rover::set_target_location(const Location& target_loc) { @@ -213,6 +214,7 @@ bool Rover::get_control_output(AP_Vehicle::ControlOutput control_output, float & } return false; } +#endif // ENABLE_SCRIPTING #if STATS_ENABLED == ENABLED /* diff --git a/Rover/Rover.h b/Rover/Rover.h index 3909074d08..d695660941 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -273,10 +273,12 @@ private: private: // Rover.cpp +#ifdef ENABLE_SCRIPTING bool set_target_location(const Location& target_loc) override; bool set_target_velocity_NED(const Vector3f& vel_ned) override; bool set_steering_and_throttle(float steering, float throttle) override; bool get_control_output(AP_Vehicle::ControlOutput control_output, float &control_value) override; +#endif // ENABLE_SCRIPTING void stats_update(); void ahrs_update(); void gcs_failsafe_check(void);