mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
ActuatorEffectivenessMultirotor: set effectiveness to zero when computing the matrix
Just to be on the safe side.
This commit is contained in:
+2
@@ -145,6 +145,8 @@ ActuatorEffectivenessMultirotor::computeEffectivenessMatrix(const MultirotorGeom
|
|||||||
{
|
{
|
||||||
int num_actuators = 0;
|
int num_actuators = 0;
|
||||||
|
|
||||||
|
effectiveness.setZero();
|
||||||
|
|
||||||
for (size_t i = 0; i < NUM_ROTORS_MAX; i++) {
|
for (size_t i = 0; i < NUM_ROTORS_MAX; i++) {
|
||||||
// Get rotor axis
|
// Get rotor axis
|
||||||
matrix::Vector3f axis(
|
matrix::Vector3f axis(
|
||||||
|
|||||||
Reference in New Issue
Block a user