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

mission: The mission check not reevaluated for RTL #22864

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

KonradRudin
Copy link
Contributor

Solved Problem

A mission on RTL mission landing can not be executed, when the mission is invalid on activation (e.g. when the vehicle in the meantime is too far away to pass the first mission item).

Solution

  • We need to make sure that when the RTL is triggered, it should not reevaluate it, as when it was valid but evaluated to false on activation, it can't do a RTL.

Changelog Entry

For release notes:

Bugfix Fix a mission RTL not being executed if mission validity changes.

Alternatives

This is only a quick fix for the problem. The mission validity should not change depending on the vehicle current position. If it is evaluated once for the takeoff/current position, it should not reevaluate it. Also the mission feasibility checker should be run separately when any of the relevant data changes (mission, geofence, parameters, etc.). So the state of the mission validity is always known.

Test coverage

Context

Related links, screenshot before/after, video

… a mission, not RTL.

We need to make sure that when the RTL is triggered, it should not reevaluate it, as when it was valid but evaluated to false on activation, it can't do a RTL.
@sfuhrer sfuhrer merged commit c5fde63 into main Mar 11, 2024
91 of 92 checks passed
@sfuhrer sfuhrer deleted the fix_mission_invalid_on_rtl branch March 11, 2024 16:08
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.

None yet

2 participants