Multirotor mixer: yaw limiting bug fixed

This commit is contained in:
Anton Babushkin 2014-05-15 14:26:32 +02:00
parent b9b84b08b7
commit bc3ca8db56
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ MultirotorMixer::mix(float *outputs, unsigned space)
/* limit yaw if it causes outputs clipping */
if (out >= 0.0f && out < -yaw * _rotors[i].yaw_scale) {
yaw = out / _rotors[i].yaw_scale;
yaw = -out / _rotors[i].yaw_scale;
}
/* calculate min and max output values */