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: guided mode fix for landing detector internal error #26866

Merged
merged 2 commits into from Apr 23, 2024

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Apr 22, 2024

This resolves an Internal Error (see issue #26865) which is caused by Guided mode neglecting its responsibility to call set_land_complete(false) when it believes the vehicle has taken off.

This only occurs when the caller is providing SET_ATTITUDE_CONTROL messages where the "thrust" field is really interpreted as a thrust (as opposed to being interpreted as a climb rate).

This has been tested in SITL to confirm that before this fix the issue occurs and afterwards it does not.

The GuideMostThrust autotest (see PR #26782) has also been enabled

@peterbarker
Copy link
Contributor

Enable the disabled autotest for this problem?

@rmackay9
Copy link
Contributor Author

@peterbarker,

Thanks for that. I've enabled it now and it passes!

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. Just adds the check of none zero thrust.

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.

I am happy with this.

@rmackay9 rmackay9 force-pushed the copter-guided-att-interr-fix branch from d78aeeb to e74a8eb Compare April 23, 2024 03:58
@rmackay9
Copy link
Contributor Author

Rebased on master in the hopes that it passes the #$% Dynamic notch flapping test.

@rmackay9 rmackay9 merged commit 533b2ed into ArduPilot:master Apr 23, 2024
71 checks passed
@rmackay9 rmackay9 deleted the copter-guided-att-interr-fix branch April 23, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants