mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user