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 4a2d8da0b8..643408e0b8 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -274,10 +274,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);