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

Use extended OSd glyphs for dot in numbers #10614

Draft
wants to merge 1 commit into
base: maintenance-8.x.x
Choose a base branch
from

Conversation

error414
Copy link
Contributor

@error414 error414 commented Jan 18, 2025

  • for adsb warning/alert are used glyphs with integrated decimal
  • add units, for altitude diff I wanted to show only km/m/mi etc..., function osdFormatDistanceSymbol provides only rich symbols with text "dist", I had to add next parameter to function, still not suire if it's ok
  • element "ADSB" which shows count of aicraft changed from %2d to %1d becasue default struct size is for 5 aicrafts

inav-adsb

Inav Configurator #PR iNavFlight/inav-configurator#2311

uint8_t symbol_mi = SYM_MI;
uint8_t symbol_nm = SYM_NM;

if(useRichSymbols)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this? Can't we always use the same symbols?

Copy link
Contributor Author

@error414 error414 Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second number of ADSB warning OSD element is altitude diff, I was not sure if it's OK to use "dis/km" OSD element. For horizontal distance INAV use "dis/km", for altitude "alt/km", but there is no element for altitude diff.

Originaly it was without unit, I don't think it's OK.

Do you have any suggestion how ADSB warning should look? I'm open to any suggestion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a suffix and a bunch of other elements on that particular item, right? I think part of the reason for different symbols for distance/km and altitude/km is the silly mix of units used in aviation.... :)

Just check the units options for the OSD.

It should be ok to use dis/km for horizontal distance and alt/km for vertical difference.

You can probably look at the radar osd element for consistency, but they may be ommiting the distance units for brevity. The analog osd canvas is a lot smaller than the hd osd canvas, which is probably the motivation for the compressed decimal symbol as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you be OK with?

image

BTW: inav radar does not use units as I know

Copy link
Collaborator

@mmosca mmosca Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok for me. @MrD-RC any feedback on this?

@mmosca
Copy link
Collaborator

mmosca commented Jan 28, 2025

BTW, if you want to aim for 8.1.x, you should target maintenance-8.x.x branch instead of master in your pr.

@error414 error414 changed the base branch from master to maintenance-8.x.x January 28, 2025 16:59
@error414
Copy link
Contributor Author

Now it looks exactly like on screen

image

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.

2 participants