diff --git a/Rover/Parameters.cpp b/Rover/Parameters.cpp index 4721aa685d..d166fb6a1b 100644 --- a/Rover/Parameters.cpp +++ b/Rover/Parameters.cpp @@ -600,7 +600,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { // @User: Standard AP_GROUPINFO("BAL_PITCH_TRIM", 40, ParametersG2, bal_pitch_trim, 0), -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING // @Group: SCR_ // @Path: ../libraries/AP_Scripting/AP_Scripting.cpp AP_SUBGROUPINFO(scripting, "SCR_", 41, ParametersG2, AP_Scripting), diff --git a/Rover/Parameters.h b/Rover/Parameters.h index edd24a6f37..ee4d341c86 100644 --- a/Rover/Parameters.h +++ b/Rover/Parameters.h @@ -383,7 +383,7 @@ public: // stick mixing for auto modes AP_Int8 stick_mixing; -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING AP_Scripting scripting; #endif // ENABLE_SCRIPTING diff --git a/Rover/Rover.cpp b/Rover/Rover.cpp index c39e74d358..ba6bdfda3c 100644 --- a/Rover/Rover.cpp +++ b/Rover/Rover.cpp @@ -139,7 +139,7 @@ Rover::Rover(void) : { } -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING // set target location (for use by scripting) bool Rover::set_target_location(const Location& target_loc) { diff --git a/Rover/Rover.h b/Rover/Rover.h index 35187b7e94..0dfcfbd6bf 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -72,7 +72,7 @@ #include #include -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING #include #endif @@ -266,7 +266,7 @@ private: private: // Rover.cpp -#ifdef ENABLE_SCRIPTING +#if 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; diff --git a/Rover/system.cpp b/Rover/system.cpp index 98fbeead82..ba4e6d557b 100644 --- a/Rover/system.cpp +++ b/Rover/system.cpp @@ -163,7 +163,7 @@ void Rover::startup_ground(void) ); #endif -#ifdef ENABLE_SCRIPTING +#if ENABLE_SCRIPTING g2.scripting.init(); #endif // ENABLE_SCRIPTING