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: LAND: adapt land logic to consider emergency braking, and vehicle velocity #23627

Closed
wants to merge 1 commit into from

Conversation

Claudio-Chies
Copy link
Contributor

Solved Problem

image
The #23546 did not consider the case when we trigger land from Altitude or Manual FlightTask, where the comanded velocity can greatly exceed the velocity possible in FlightTaskAuto.
For such cases FlightTaskAuto has the emergency braking feature.

This PR moves the landing setpoint logic from navigator back to FlightTaskAuto, and is able to adjust the setpoint depending on if EmergencyBraking is active or not.
When ... I found that ...

Downsides

While emergency braking, im forcing the Position of _position_smoothing to be the current vehicle position, meaning we are unable to compensate wind. is probably a conercase as wind compensation while emergency braking is not the most important aspect. and emergency braking only triggers above 15 m/s (54 km/h) with default settings.

Changelog Entry

Alternatives

We could also create FlightTaskLand, to take all landing related tasks out of FlightTaskAuto

Test coverage

  • Tested in SITL

Context

image

@Claudio-Chies Claudio-Chies marked this pull request as draft August 29, 2024 06:34
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