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

Copter: condition yaw fix #24719

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Aug 21, 2023

This resolves issue #24717 which involves the vehicle pointing towards an out-of-date yaw target.

This has been tested in SITL

ArduCopter/autoyaw.cpp Outdated Show resolved Hide resolved
@rmackay9 rmackay9 closed this Nov 27, 2023
@rmackay9 rmackay9 deleted the copter-condition-yaw-fix branch November 27, 2023 22:48
@rmackay9 rmackay9 restored the copter-condition-yaw-fix branch December 14, 2023 11:41
@rmackay9 rmackay9 reopened this Dec 14, 2023
@rmackay9
Copy link
Contributor Author

I accidentally closed this while closing this other yaw related PR #25646

@rmackay9
Copy link
Contributor Author

While re-working this PR I stumbled across a much simpler fix which is to always update the position controller's yaw angle and rate targets. When we don't have a velocity vector long enough to calculate a good target we simply use the attitude controller's current target.

I've tested and this resolves the original issue #24717

Copy link
Contributor

@lthall lthall left a comment

Choose a reason for hiding this comment

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

This should work nicely.

Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

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

LGTM

@rmackay9 rmackay9 removed the WIP label Mar 25, 2024
@rmackay9 rmackay9 merged commit 1eb2a30 into ArduPilot:master Mar 25, 2024
91 checks passed
@rmackay9
Copy link
Contributor Author

Thanks for the reviews, merged!

@rmackay9 rmackay9 deleted the copter-condition-yaw-fix branch March 25, 2024 02:06
@rmackay9
Copy link
Contributor Author

This is included in 4.5.2-beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 4.5.2-beta1
Development

Successfully merging this pull request may close these issues.

3 participants