mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 23:54:07 +08:00
ActuatorEffectivenessMultirotor: set effectiveness to zero when computing the matrix
Just to be on the safe side.
This commit is contained in:
parent
212ec821b1
commit
c36340d29a
@ -145,6 +145,8 @@ ActuatorEffectivenessMultirotor::computeEffectivenessMatrix(const MultirotorGeom
|
||||
{
|
||||
int num_actuators = 0;
|
||||
|
||||
effectiveness.setZero();
|
||||
|
||||
for (size_t i = 0; i < NUM_ROTORS_MAX; i++) {
|
||||
// Get rotor axis
|
||||
matrix::Vector3f axis(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user