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

AP_Motors: Heli: Fix SWSH logging for reversed collectives #27234

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

MattKear
Copy link
Contributor

@MattKear MattKear commented Jun 4, 2024

I didn't account for reversed collective directions correctly in my original PR that added swash plate angle logging: #26606

Plot below shows the issue. This aircraft has two reversed collectives and the collective angle range has come out reversed:
image

This fix up resolves the issue by storing the collective value before we apply the collective reversal for the control outputs.

@MattKear MattKear requested a review from bnsgeyer June 4, 2024 10:22
@MattKear MattKear force-pushed the heli_SWSH_log_fix_rev_col branch from 3c9603b to 8df1b81 Compare June 4, 2024 10:26
@IamPete1
Copy link
Member

IamPete1 commented Jun 5, 2024

We tested this fix, collective now coming out as expected.

image

Co-authored-by: Peter Hall <[email protected]>
@bnsgeyer bnsgeyer merged commit c77f688 into ArduPilot:master Jun 9, 2024
92 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.

3 participants