mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 15:53:33 +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 */
|
/* limit yaw if it causes outputs clipping */
|
||||||
if (out >= 0.0f && out < -yaw * _rotors[i].yaw_scale) {
|
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 */
|
/* calculate min and max output values */
|
||||||
|
|||||||
Reference in New Issue
Block a user