From 7a81c416898fe197eb43f55b449f9681205f2e2a Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 14 May 2013 16:05:22 +0900 Subject: [PATCH] AP_Motors: motor_enabled array to bool Also increased the default MAX_THROTTLE from 850 to 1000 but this number is always overwritten by the main code anyway so should have no functional impact. --- libraries/AP_Motors/AP_Motors_Class.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Motors/AP_Motors_Class.h b/libraries/AP_Motors/AP_Motors_Class.h index 350bce8dd6..dc4e6d4a81 100644 --- a/libraries/AP_Motors/AP_Motors_Class.h +++ b/libraries/AP_Motors/AP_Motors_Class.h @@ -25,7 +25,7 @@ #define AP_MOTORS_MAX_NUM_MOTORS 8 #define AP_MOTORS_DEFAULT_MIN_THROTTLE 130 -#define AP_MOTORS_DEFAULT_MAX_THROTTLE 850 +#define AP_MOTORS_DEFAULT_MAX_THROTTLE 1000 // APM board definitions #define AP_MOTORS_APM1 1 @@ -137,7 +137,7 @@ public: virtual bool setup_throttle_curve(); // 1 if motor is enabled, 0 otherwise - AP_Int8 motor_enabled[AP_MOTORS_MAX_NUM_MOTORS]; + bool motor_enabled[AP_MOTORS_MAX_NUM_MOTORS]; // final output values sent to the motors. public (for now) so that they can be access for logging int16_t motor_out[AP_MOTORS_MAX_NUM_MOTORS];