Add support for bypassing extra arming safety#4623
Merged
Conversation
559e25d to
582676e
Compare
In order to bypass the checks, users must set the new nav_extra_arming_safety value ALLOW_BYPASS and arm with a switch while holding yaw high. If this is used to arm the craft, the checks are skipped until the next power cycle in order to allow rearming quickly in case of an accidental mid air disarm. Also, the "NAVIGATION IS UNSAFE" OSD message has been replaced with more specific messages which tell the user the exact reason why the navigation system is blocking arming.
582676e to
dc6d002
Compare
Also, make the check for setting the STATE() flag clearer. Previous implementation was a bit confusing.
Contributor
|
@fiam Will this change still work with code that checks if extra arming safety is enabled? For example:
|
Member
Author
|
@teckel12 Depends on what it checks. |
Contributor
|
@fiam Makes sense. I know at least one place a change will need to made to accommodate this. Can I commit to this branch? |
Member
Author
|
No, this is already merged so you need to open a new PR. Which changes do you need? |
Contributor
|
@fiam I believe for CRSF telemetry it will need to check for different values when deciding to show the NOT OK flight mode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In order to bypass the checks, users must set the new
nav_extra_arming_safety value ALLOW_BYPASS and arm with a switch
while holding yaw high. If this is used to arm the craft, the checks
are skipped until the next power cycle in order to allow rearming quickly
in case of an accidental mid air disarm.
Also, the "NAVIGATION IS UNSAFE" OSD message has been replaced
with more specific messages which tell the user the exact reason
why the navigation system is blocking arming.