From 5078e6ea00ea4126bf7e7fb7ea63007a66d796d2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 15 Jan 2023 22:21:37 +1100 Subject: [PATCH] SITL: exclude SIM_SAIL_TYPE from non-Rover builds --- libraries/SITL/SITL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 3f205525ab..4cd7029788 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -614,10 +615,12 @@ const AP_Param::GroupInfo SIM::var_ins[] = { #endif AP_GROUPINFO("ACC_TRIM", 25, SIM, accel_trim, 0), +#if APM_BUILD_TYPE(APM_BUILD_Rover) // @Param{Rover}: SAIL_TYPE // @DisplayName: Sailboat simulation sail type // @Description: 0: mainsail with sheet, 1: directly actuated wing AP_GROUPINFO("SAIL_TYPE", 26, SIM, sail_type, 0), +#endif // @Param: JSON_MASTER // @DisplayName: JSON master instance