AP_Motors: limit nax-motors to 12 unless scripting enabled

we only allow configuration of more complicated frames with scripting at the moment
This commit is contained in:
Peter Barker 2025-01-18 13:34:19 +11:00 committed by Peter Barker
parent 9f5c095688
commit dfe0a559d3

View File

@ -42,7 +42,11 @@
#define AP_MOTORS_MOT_32 31U
#ifndef AP_MOTORS_MAX_NUM_MOTORS
#if AP_SCRIPTING_ENABLED
#define AP_MOTORS_MAX_NUM_MOTORS 32
#else
#define AP_MOTORS_MAX_NUM_MOTORS 12
#endif
#endif
#ifndef AP_MOTORS_FRAME_DEFAULT_ENABLED