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

Removed multiple units in the Advanced Tuning tab #1416

Merged
merged 5 commits into from Feb 12, 2022
Merged

Removed multiple units in the Advanced Tuning tab #1416

merged 5 commits into from Feb 12, 2022

Conversation

COOK1EK1W1
Copy link
Contributor

There can be multiple units in the Advanced Tuning tab, firstly the units at the end of the description next to the input, and the units which appear when you change the units for the configurator. This can be confusing for people.
I have removed the units from the descriptions. Added tags to the inputs denoting the unit type. Changed some code in the settings file which goes through all the inputs and shows the appropriate unit. Converting between units still works.
This is my first contribution to this/any public project, Thanks.

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 23, 2021

The ID’s shouldn’t be changed. They are based on the OSD IDs in the firmware.

js/settings.js Show resolved Hide resolved
@COOK1EK1W1
Copy link
Contributor Author

Should be fixed now

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 25, 2021

Should be fixed now

It still looks incorrect in the source code.
Imperial should be 0 and Metric should be 1.

@COOK1EK1W1
Copy link
Contributor Author

swapped them around

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 30, 2021

The getUnitDisplayTypeValue const is all good now.

@MrD-RC MrD-RC added this to the 5.0 milestone Feb 9, 2022
@MrD-RC
Copy link
Collaborator

MrD-RC commented Feb 12, 2022

Approval from Pawel, so merging.

@MrD-RC MrD-RC merged commit a31aa12 into iNavFlight:master Feb 12, 2022
@MrD-RC MrD-RC mentioned this pull request Apr 10, 2022
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.

None yet

2 participants