From 117b67c9e2210702ef2a433cd78eea079cdf3bdc Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 10 Dec 2021 16:45:38 +0000 Subject: [PATCH] AR_MotorsUGV: convert to 32 bit motor mask --- libraries/AR_Motors/AP_MotorsUGV.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AR_Motors/AP_MotorsUGV.h b/libraries/AR_Motors/AP_MotorsUGV.h index 36d06fc73a..667c9fe9ff 100644 --- a/libraries/AR_Motors/AP_MotorsUGV.h +++ b/libraries/AR_Motors/AP_MotorsUGV.h @@ -107,7 +107,7 @@ public: bool pre_arm_check(bool report) const; // return the motor mask - uint16_t get_motor_mask() const { return _motor_mask; } + uint32_t get_motor_mask() const { return _motor_mask; } // returns true if the configured PWM type is digital and should have fixed endpoints bool is_digital_pwm_type() const; @@ -216,7 +216,7 @@ private: float _mainsail; // requested mainsail input as a value from 0 to 100 float _wingsail; // requested wing sail input as a value in the range +- 100 float _mast_rotation; // requested mast rotation input as a value in the range +- 100 - uint16_t _motor_mask; // mask of motors configured with pwm_type + uint32_t _motor_mask; // mask of motors configured with pwm_type frame_type _frame_type; // frame type requested at initialisation // omni variables