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: Quadplane: SLT: enforce TECS pitch limits to beat race #21885

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Oct 5, 2022

Because we set the TECS pitch limit after we have already got the pitch output in the first loop after starting to transition to forward flight we were getting one step where it was not applied. This results in a ugly twitch.

Master:
image

This PR:
image

So the TECS output is unchanged in that first step, but we now enforce the desired pitch to the intended limit.

We still have a aggressive snap to 0 deg and then to 3 deg (Q_TRAN_PIT_MAX) as the pitch limit expands, which could be improved. But we no longer pitch past 0 and the back up again.

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find, thanks!

ArduPlane/quadplane.cpp Outdated Show resolved Hide resolved
@pompecukor
Copy link

pompecukor commented Oct 7, 2022

@tridge
Tested and working. Logs sent in partner channel. Thank you

@IamPete1
Copy link
Member Author

IamPete1 commented Oct 7, 2022

Some examples from that log, its slightly less clear as full rate logging is not on:

image

image

image

@tridge tridge added this to Pending in Plane 4.3 Oct 7, 2022
@tridge tridge merged commit a774f31 into ArduPilot:master Oct 11, 2022
@rmackay9 rmackay9 added this to Pending in Copter 4.3 Oct 14, 2022
@rmackay9 rmackay9 moved this from Pending to 4.3.0-beta3 in Copter 4.3 Oct 14, 2022
@tridge tridge moved this from Pending to 4.3.1-beta1 in Plane 4.3 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Copter 4.3
4.3.0-beta3
Plane 4.3
4.3.1-beta1
Development

Successfully merging this pull request may close these issues.

None yet

5 participants