mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_Motors: add override keyword to get_motor_mask
This commit is contained in:
parent
be19f6520c
commit
22d3ab344c
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
||||||
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
||||||
virtual uint16_t get_motor_mask();
|
uint16_t get_motor_mask() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// output - sends commands to the motors
|
// output - sends commands to the motors
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
// get_motor_mask - returns a bitmask of which outputs are being used for motors (1 means being used)
|
// get_motor_mask - returns a bitmask of which outputs are being used for motors (1 means being used)
|
||||||
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
||||||
uint16_t get_motor_mask();
|
uint16_t get_motor_mask() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// output - sends commands to the motors
|
// output - sends commands to the motors
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
||||||
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
||||||
virtual uint16_t get_motor_mask();
|
uint16_t get_motor_mask() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// output - sends commands to the motors
|
// output - sends commands to the motors
|
||||||
|
@ -27,7 +27,7 @@ public:
|
|||||||
void output_to_motors();
|
void output_to_motors();
|
||||||
|
|
||||||
// return 0 motor mask
|
// return 0 motor mask
|
||||||
uint16_t get_motor_mask() { return 0; }
|
uint16_t get_motor_mask() override { return 0; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// calculate motor outputs
|
// calculate motor outputs
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
// get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used)
|
||||||
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
// this can be used to ensure other pwm outputs (i.e. for servos) do not conflict
|
||||||
virtual uint16_t get_motor_mask();
|
uint16_t get_motor_mask() override;
|
||||||
|
|
||||||
// output a thrust to all motors that match a given motor
|
// output a thrust to all motors that match a given motor
|
||||||
// mask. This is used to control tiltrotor motors in forward
|
// mask. This is used to control tiltrotor motors in forward
|
||||||
|
Loading…
Reference in New Issue
Block a user