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

Increase number of voltage digits in BF compatibility mode OSD #8634

Merged
merged 4 commits into from Dec 19, 2022

Conversation

mmosca
Copy link
Collaborator

@mmosca mmosca commented Dec 16, 2022

The voltage display in BF compatibility mode loses 1 digit of precision.

Main battery voltage becomes an integer by default and cell voltage is reduced to a single digit.

This change would increase the number of characters by 1 in BF compatibility mode so it can display the expected number of decimal places.

Other video systems are not affected.

Main pack voltage seems like an important enough metric for this change.

In BF compatible mode the . takes up space of data that usually gets
displayed.

It i possible to work around it for the main battery voltage by changing
from 1 decimal digits to 2, but there will always only be space for N -
1  digits.

This bumps the size of the field by 1 in BF_COMPATIBLE mode for main
battery voltage and cell voltage fields.
@mmosca mmosca changed the title Betaflight OSD Compatibility Increase number of voltage digits in BF compatibility mode Dec 16, 2022
@mmosca mmosca marked this pull request as ready for review December 17, 2022 12:25
@mmosca mmosca changed the title Increase number of voltage digits in BF compatibility mode Increase number of voltage digits in BF compatibility mode OSD Dec 17, 2022
@DzikuVx DzikuVx added this to the 6.0 milestone Dec 17, 2022
@MrD-RC MrD-RC merged commit b886757 into iNavFlight:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants