fix a fatal one-character typo in the multirotor output scaling logic

This commit is contained in:
px4dev 2012-08-16 00:10:58 -07:00
parent 5198a9daf7
commit e84d0f41fa
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ MultirotorMixer::mix(float *outputs, unsigned space)
fixup_scale = 2.0f;
}
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 */
for (unsigned i = 0; i < _rotor_count; i++)