mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 09:57:34 +08:00
Multirotor mixer: yaw limiting bug fixed
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user