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

RTH sanity checking emergency landing fix #7790

Merged
merged 9 commits into from
Mar 21, 2022

Conversation

breadoven
Copy link
Collaborator

Provides full fix related to #7731.

Emergency Landing due to sensor failure during RTH or WP modes auto cancels if sensors working again. Landing can also be cancelled by deselecting RTH and WP modes or selecting AltHold mode.

Emergency Landing caused by RTH Sanity Checking can be cancelled by deselecting RTH mode.

Emergency Landing can't be cancelled if Failsafe is active.

One notable change is to navProcessFSMEvents where the routines for Timeout event and Injected event have been changed and simplified with injected events processed with priority over timeout events. This was done to fix an issue where a change to the navState in the timeout event routine (processed first) is incorrectly switched back to the navState of the injected event (processed second), e.g. RTH Sanity failure switches to Emergency Landing in the timeout event but is immediately switched back to RTH in the injected event, cancelling the switch to Emergency Landing.

Still needs fully testing but Emergency Landing and Nav modes appear to work as expected based on limited fixed wing and multirotor ground testing.

posControl.rthSanityChecker.initialPosition has been removed since it appears it was never used.

@DzikuVx
Copy link
Member

DzikuVx commented Feb 22, 2022

@breadoven should we merge?

@breadoven
Copy link
Collaborator Author

@breadoven should we merge?

I still haven't got around to fully flight testing this. Needs doing before merging just be sure.

@DzikuVx
Copy link
Member

DzikuVx commented Feb 22, 2022

OK, let me know when you will know more

@breadoven
Copy link
Collaborator Author

OK this seems to be working as expected so good to merge.

@breadoven breadoven merged commit b13525d into iNavFlight:master Mar 21, 2022
@DzikuVx DzikuVx added this to the 5.0 milestone Mar 22, 2022
@breadoven breadoven deleted the abo_RTH_sanity_fix branch March 22, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants