diff options
author | px4dev <px4@purgatory.org> | 2012-08-16 00:10:58 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-16 00:10:58 -0700 |
commit | e84d0f41fa17e3e83ff3d58861ee572570604c19 (patch) | |
tree | c7c61ca795e87a164df576bf3d9d331eb43dfb61 | |
parent | 5198a9daf798089b4f6f2112029260f614cf7702 (diff) | |
download | px4-firmware-e84d0f41fa17e3e83ff3d58861ee572570604c19.tar.gz px4-firmware-e84d0f41fa17e3e83ff3d58861ee572570604c19.tar.bz2 px4-firmware-e84d0f41fa17e3e83ff3d58861ee572570604c19.zip |
fix a fatal one-character typo in the multirotor output scaling logic
-rw-r--r-- | apps/systemlib/mixer/mixer_multirotor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/systemlib/mixer/mixer_multirotor.cpp b/apps/systemlib/mixer/mixer_multirotor.cpp index 990c067fd..60b71c60a 100644 --- a/apps/systemlib/mixer/mixer_multirotor.cpp +++ b/apps/systemlib/mixer/mixer_multirotor.cpp @@ -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++) |