-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
MPC: Auto: Use the Stop Motion Primitive for emergency braking in FlighttaskAuto #24114
Draft
Claudio-Chies
wants to merge
1
commit into
pr-flight_task_land
Choose a base branch
from
pr-emergency_braking
base: pr-flight_task_land
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.
+86
−59
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
Claudio-Chies
commented
Dec 16, 2024
_position_smoothing.reset(_acceleration_setpoint, _velocity, _position); | ||
|
||
// Modifying the triplet outside of the navigatior is not ideal, but this is to catch an edge case. | ||
_triplet_prev_wp = _position; |
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.
Important thing to look at during review, Triplets are usually not to be adjusted outside the navigator, but this was the only way I found for the drone to move in a direct line from the end position of the slow-down to the waypoint.
Claudio-Chies
force-pushed
the
pr-flight_task_land
branch
3 times, most recently
from
December 16, 2024 14:30
0ddbe61
to
4d003fd
Compare
Claudio-Chies
force-pushed
the
pr-emergency_braking
branch
2 times, most recently
from
December 17, 2024 08:34
ece8eac
to
ddd6afa
Compare
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 240 byte (0.01 %)]
px4_fmu-v6x [Total VM Diff: 248 byte (0.01 %)]
Updated: 2024-12-17T09:02:24 |
Claudio-Chies
force-pushed
the
pr-emergency_braking
branch
from
December 17, 2024 08:56
ddd6afa
to
1ee6d8b
Compare
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.
Solved Problem
Switching at high speeds from Stabilized to Mission can have weird breaking and flying to the waypoint behaviour
SITL Flightreview
Solution
With this PR i'm using the Stop Motion primitive introduced with FlightTaskLand for emergency braking in FlightTaskAuto. And removed the _check_emergency_braking logic from FlightTaskAuto.
Changelog Entry
For release notes:
Test coverage
Context
Related links, screenshot before/after, video