-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Copter: guided mode fix for landing detector internal error #26866
Conversation
7ba2079
to
9671055
Compare
Enable the disabled autotest for this problem? |
Thanks for that. I've enabled it now and it passes! |
There was a problem hiding this 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.
There was a problem hiding this 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.
d78aeeb
to
e74a8eb
Compare
Rebased on master in the hopes that it passes the #$% Dynamic notch flapping test. |
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