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

Plane: Fix RTL behaviour when MIS_RESTART = 1 and DO_LAND_START present. #13652

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

MattKear
Copy link
Contributor

I have found what I believe to be incorrect behaviour given the following combination:

  • Mission contains DO_LAND_START flag.
  • RTL_AUTOLAND is set to either 1 or 2 (to land via a DO_LAND_START).
  • MIS_RESTART = 1 (to reset mission on restart).
  • RTL is initiated by any method other than by failsafe (e.g. via RC switch or GCS).

This series of circumstances leads to the mission always being reset. Thus, instead of RTL causing the aircraft to land via a DO_LAND_START, it causes the mission to begin again from command 1.

This PR fixes this behaviour by adding a _force_resume bool in the mission library. Allowing the invoking mode change back to RTL to effectively ignore the MIS_RESTART parameter in this niche case.

Tested in SITL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Plane 4.0 Backports
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

4 participants