forked from Archive/PX4-Autopilot
Multirotor mixer: yaw limiting bug fixed
This commit is contained in:
parent
b9b84b08b7
commit
bc3ca8db56
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue