mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
fix a fatal one-character typo in the multirotor output scaling logic
This commit is contained in:
@@ -179,7 +179,7 @@ MultirotorMixer::mix(float *outputs, unsigned space)
|
|||||||
fixup_scale = 2.0f;
|
fixup_scale = 2.0f;
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < _rotor_count; i++)
|
for (unsigned i = 0; i < _rotor_count; i++)
|
||||||
outputs[i] *= -1.0 + (outputs[i] * fixup_scale);
|
outputs[i] = -1.0 + (outputs[i] * fixup_scale);
|
||||||
|
|
||||||
/* ensure outputs are out of the deadband */
|
/* ensure outputs are out of the deadband */
|
||||||
for (unsigned i = 0; i < _rotor_count; i++)
|
for (unsigned i = 0; i < _rotor_count; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user