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

Plane: fix guided heading control anti windup #25085

Merged
merged 3 commits into from
Oct 3, 2023

Conversation

IamPete1
Copy link
Member

Spotted while looking into the last users of update_error for #25084.

The current anti windup handling just does nothing, it fetches I, then it fetches it again. AC_PID will already handle anti windup correctly if we pass a limit flag.

@IamPete1 IamPete1 added the Plane label Sep 23, 2023
@IamPete1
Copy link
Member Author

Looks like this came in with #13637 and was then moved files in #22926

@tridge
Copy link
Contributor

tridge commented Sep 26, 2023

as long as tested in SITL this looks good

@IamPete1
Copy link
Member Author

IamPete1 commented Sep 29, 2023

Rebased and tested. PID limit flag being set by roll limit:

image

I have also made a change to disable defualt PID slew limiter by default. With the defualt P-gain of 5000 it is kicking in constantly. This would not have shown previously as the get_p method bypasses the slew limit.

image

This also removes the early return for passing the same heading. This meant that changes in heading type and accel limit were ignored.

@tridge tridge merged commit 9381e2f into ArduPilot:master Oct 3, 2023
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants