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: auto mode takeoff complete pos fix #28061

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Sep 10, 2024

This resolves issue #28060 by resolving the mixup of variable names in _AutoTakeoff::get_position() method.

I've also renamed the method and added some comments in the hope that this makes its purpose a little more clear.

This has been lightly tested in SITL using a simple mission consisting of just a takeoff and a waypoint command.
test-mission

Below is a screenshot of the target position (in the Easterly direction) and "before" we see a slight jump while "after" it is gone.
before
after

Thanks to @peterbarker for helping with the investigation and fix

@peterbarker
Copy link
Contributor

Closes #28060

@rmackay9 rmackay9 merged commit a2845e4 into ArduPilot:master Sep 10, 2024
74 checks passed
@rmackay9 rmackay9 deleted the copter-takeoff-complete-fix branch September 10, 2024 23:48
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.

2 participants