AP_Motors: allow AP_SCRIPTING_ENABLED to come from hwdef files

This commit is contained in:
Peter Barker 2023-06-07 15:57:31 +10:00 committed by Peter Barker
parent 615bf8e5ee
commit 6c9ea896c7
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <AP_Scripting/AP_Scripting_config.h>
#if AP_SCRIPTING_ENABLED
#include <AP_HAL/AP_HAL.h>

View File

@ -12,6 +12,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <AP_Scripting/AP_Scripting_config.h>
#if AP_SCRIPTING_ENABLED
// This allows motor roll, pitch, yaw and throttle factors to be changed in flight, allowing vehicle geometry to be changed