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

MPC: Auto: Use the Stop Motion Primitive for emergency braking in FlighttaskAuto #24114

Draft
wants to merge 2 commits into
base: pr-flight_task_land
Choose a base branch
from

Conversation

Claudio-Chies
Copy link
Contributor

Solved Problem

image
Switching at high speeds from Stabilized to Mission can have weird breaking and flying to the waypoint behaviour
SITL Flightreview

Solution

image

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:

Improvements regarding Transition with high speeds from Manual Flightmodes to Flightmode Auto

Test coverage

Context

Related links, screenshot before/after, video

_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;
Copy link
Contributor Author

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 Claudio-Chies force-pushed the pr-flight_task_land branch 3 times, most recently from 0ddbe61 to 4d003fd Compare December 16, 2024 14:30
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.

1 participant