Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AC_AttitudeControl: check for zero rate Y max before taking min #18341

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

IamPete1
Copy link
Member

Were currently taking the min of _ang_vel_yaw_max and get_slew_yaw_rads. _ang_vel_yaw_max defaults to 0 to disable meaning that the min is always zero and slew yaw is always ignored. This changes to only use get_slew_yaw_rads if _ang_vel_yaw_max is 0, otherwise it uses the existing logic.

This is a change in behavior but I think this was how the code was intended to work.

Fixes #12600

@rmackay9
Copy link
Contributor

.. and I guess this should be included in the next 4.1.0-beta release?

@lthall
Copy link
Contributor

lthall commented Aug 25, 2021

.. and I guess this should be included in the next 4.1.0-beta release?

yes

@IamPete1 IamPete1 merged commit 2a83450 into ArduPilot:master Aug 25, 2021
@IamPete1 IamPete1 deleted the slew_yaw_fix branch August 25, 2021 22:49
@rmackay9 rmackay9 added this to pending in Copter 4.1 Aug 28, 2021
@rmackay9 rmackay9 moved this from pending to 4.1.0-beta8 in Copter 4.1 Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Copter 4.1
4.1.0-beta8
Plane 4.1
Awaiting triage
Rover 4.1
Awaiting triage
Development

Successfully merging this pull request may close these issues.

Copter Yaw max rate param not affect loiter as marked.
5 participants