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

Fix bug that can cause early exit from loiter #81

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

robertlong13
Copy link
Collaborator

…wp's

The check for the aircraft being lined up for a tangent exit has an early breakout condition if the next waypoint is too close to the loiter circle which can prevent the required ground course to waypoint ever being achieved. This check was using the WP_LOITER_RAD parameter value, not the actual radius being used which can be set differently by the mission plan. If a large value for WP_LOITER_RAD was set and being over-written by the mission plan with a smaller value compatible with the distance to the next waypoint, the aircraft would still exit early.

Cherry-picked from ArduPilot/ardupilot#23801
@robertlong13 robertlong13 requested review from a user and Pradeep-Carbonix November 27, 2023 23:46
@loki077 loki077 merged commit 874d6cf into CxPilot Nov 28, 2023
34 checks passed
@robertlong13 robertlong13 deleted the OV3-1021-CherryPick-necessary-for-CxPilot5.0.1 branch June 17, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants