AR_MotorsUGV: convert to 32 bit motor mask

This commit is contained in:
Iampete1 2021-12-10 16:45:38 +00:00 committed by Andrew Tridgell
parent 43832649ec
commit 117b67c9e2

View File

@ -107,7 +107,7 @@ public:
bool pre_arm_check(bool report) const; bool pre_arm_check(bool report) const;
// return the motor mask // 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 // returns true if the configured PWM type is digital and should have fixed endpoints
bool is_digital_pwm_type() const; bool is_digital_pwm_type() const;
@ -216,7 +216,7 @@ private:
float _mainsail; // requested mainsail input as a value from 0 to 100 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 _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 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 frame_type _frame_type; // frame type requested at initialisation
// omni variables // omni variables