-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
Plane: fixed bug in pullup and loiter to alt code #28259
Open
tridge
wants to merge
5
commits into
ArduPilot:master
Choose a base branch
from
tridge:pr-loiter-to-alt
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+54
−12
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tridge
force-pushed
the
pr-loiter-to-alt
branch
2 times, most recently
from
September 29, 2024 01:06
de5c5e1
to
5e2f19e
Compare
if we have poor pitch trim it is possible we will pullup before reaching the target airspeed. Check pitch threshold during airspeed stage of pullup
tridge
force-pushed
the
pr-loiter-to-alt
branch
from
September 29, 2024 06:32
5e2f19e
to
f88af49
Compare
Georacer
reviewed
Sep 29, 2024
IamPete1
reviewed
Sep 29, 2024
IamPete1
reviewed
Sep 29, 2024
if our target loiter radius is unachievable then we can reach the loiter target on initial capture but be unable to maintain it. This ensures that once we capture we return true on reached_loiter_target() This is critical for any mission type where we take an action on reached_loiter_target() and another condition (such as being lined up for a waypoint). Otherwise we may continue loitering forever
use LOITER_TO_ALT and a landing, allowing for a much better test of the full glider pullup mission
we were accepting values outside the specified range
need terrain handlers installed to support terrain targets
tridge
force-pushed
the
pr-loiter-to-alt
branch
from
September 29, 2024 20:52
f88af49
to
6e41c61
Compare
IamPete1
approved these changes
Sep 29, 2024
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.
L1 changes looks good. Pull up change looks good too and is contained to glider pull up so not a high risk. Not looked at the test changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a bug in the L1 controller where reached_loiter_target() goes false after capture due to an unachievable loiter radius or wind. This can lead waypoint types that rely on a combination of reached_loiter_target() and another condition (such as being lined up with the next waypoint) to never complete
This also fixes a bug in the pullup code where poor pitch trim can mean we never hit the target airspeed in the pullup
Note that the loiter to alt fix is not really a complete fix. If the initial trajectory prevents capture ever happening then we can still have the same issue. We could add a check for yaw going through more than 360 degrees to make this more robust
Note: This builds on #28257
@peterbarker this includes a fix for the wait min/max/accuracy code in vehicle test suite that will impact a lot of tests. We were getting things like this:
which shows it accepting an out of range value