mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
yaw controller: fix bug where roll for turn coordination was constrained
wrongly Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
391b6dfd00
commit
c4cc02b3f2
@ -110,7 +110,7 @@ float ECL_YawController::control_attitude_impl_openloop(const struct ECL_Control
|
||||
}
|
||||
}
|
||||
|
||||
constrained_roll = math::constrain(constrained_roll, -ctl_data.roll_setpoint, ctl_data.roll_setpoint);
|
||||
constrained_roll = math::constrain(constrained_roll, -fabsf(ctl_data.roll_setpoint), fabsf(ctl_data.roll_setpoint));
|
||||
|
||||
|
||||
if (!inverted) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user