ActuatorEffectivenessMultirotor: set effectiveness to zero when computing the matrix

Just to be on the safe side.
This commit is contained in:
Beat Küng 2020-08-14 09:56:49 +02:00 committed by Daniel Agar
parent 212ec821b1
commit c36340d29a

View File

@ -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(