From 6c9ea896c73dd3122f25e834d3b7431a05422111 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Jun 2023 15:57:31 +1000 Subject: [PATCH] AP_Motors: allow AP_SCRIPTING_ENABLED to come from hwdef files --- libraries/AP_Motors/AP_MotorsMatrix_6DoF_Scripting.cpp | 2 ++ libraries/AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/libraries/AP_Motors/AP_MotorsMatrix_6DoF_Scripting.cpp b/libraries/AP_Motors/AP_MotorsMatrix_6DoF_Scripting.cpp index 9248cf638d..42b9d164b3 100644 --- a/libraries/AP_Motors/AP_MotorsMatrix_6DoF_Scripting.cpp +++ b/libraries/AP_Motors/AP_MotorsMatrix_6DoF_Scripting.cpp @@ -13,6 +13,8 @@ along with this program. If not, see . */ +#include + #if AP_SCRIPTING_ENABLED #include diff --git a/libraries/AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.cpp b/libraries/AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.cpp index e8f363a694..c32dffbb6d 100644 --- a/libraries/AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.cpp +++ b/libraries/AP_Motors/AP_MotorsMatrix_Scripting_Dynamic.cpp @@ -12,6 +12,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ + +#include + #if AP_SCRIPTING_ENABLED // This allows motor roll, pitch, yaw and throttle factors to be changed in flight, allowing vehicle geometry to be changed