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

Add switch position indicators to the OSD #7734

Merged
merged 7 commits into from
Apr 19, 2022

Conversation

MrD-RC
Copy link
Collaborator

@MrD-RC MrD-RC commented Jan 8, 2022

This PR adds four switch position indicators to the OSD. Fixes #7717
Requires configurator change iNavFlight/inav-configurator#1429

Each switch position indicator can be enabled or disabled like any other OSD element. They are also configurable on the right of the screen. This allows the pilot to assign a letter to the switch indicator, and the channel that it watches.

This is a demo of the PR working

As a side effect, strings are now handled by the MSPHelper for the data-setting method of communication. Before they would just throw an exception.

@MrD-RC
Copy link
Collaborator Author

MrD-RC commented Jan 9, 2022

Changed to allow up to 4 characters for the name.
image

@MrD-RC
Copy link
Collaborator Author

MrD-RC commented Jan 20, 2022

This update makes this feature much more customisable. The name can be up to 4 characters, and the text can also be aligned to the left or right of the switch. The configurator updates to show the correct visuals to how it will be drawn on the actual OSD.

https://youtu.be/A7vcS6twd2w

@MrD-RC MrD-RC requested a review from DzikuVx April 9, 2022 14:13
@MrD-RC MrD-RC merged commit 79c5c92 into master Apr 19, 2022
@MrD-RC MrD-RC deleted the MrD-Add-switch-indicators-to-OSD branch April 19, 2022 19:53
@MrD-RC
Copy link
Collaborator Author

MrD-RC commented Apr 19, 2022

Future enhancement. Activate via LC.

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.

OSD Switch Indicator (for Flaps, Gear, etc.)
1 participant