Skip to content

ADSB - Use extended OSD glyphs for dot in numbers and second line for ADSB warning#10614

Closed
error414 wants to merge 1 commit intoiNavFlight:maintenance-8.x.xfrom
error414:adsb-better-look
Closed

ADSB - Use extended OSD glyphs for dot in numbers and second line for ADSB warning#10614
error414 wants to merge 1 commit intoiNavFlight:maintenance-8.x.xfrom
error414:adsb-better-look

Conversation

@error414
Copy link
Copy Markdown
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

Comment thread src/main/io/osd.c Outdated
uint8_t symbol_mi = SYM_MI;
uint8_t symbol_nm = SYM_NM;

if(useRichSymbols)
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Now it looks exactly like on screen

image

@error414 error414 marked this pull request as ready for review April 14, 2025 21:11
@error414
Copy link
Copy Markdown
Contributor Author

error414 commented Apr 14, 2025

it works, tested many times on the field https://www.youtube.com/watch?v=ixcL9D2hAxo

@error414 error414 changed the title Use extended OSd glyphs for dot in numbers Use extended OSD glyphs for dot in numbers Apr 14, 2025
@error414 error414 changed the title Use extended OSD glyphs for dot in numbers ADSB - Use extended OSD glyphs for dot in numbers Apr 18, 2025
@error414 error414 marked this pull request as draft April 28, 2025 19:16
@error414 error414 force-pushed the adsb-better-look branch 2 times, most recently from 86d3c07 to 077ac69 Compare April 29, 2025 20:14
@error414 error414 force-pushed the adsb-better-look branch from 077ac69 to e0b50e4 Compare May 9, 2025 11:47
@DarthPlasma
Copy link
Copy Markdown

One useful things would be having a relative heading indication indicating the direction of the detected aicraft relative to us, in order to know if it is approaching us, or flying away from us, next to detected aircraft speed indicatio. If the arrow points in the same direction of the indication of the position of the aircraft, it means it is flying away from us. Instead if the direction is opposite, it means it is heading towards us.

example:
Dist: 5.00km dir: ↑ alt: 1.5km
speed: 250kmh hdg: ↑

aicraft in front of as, heading away from us

Dist: 5.00km dir: → alt: 1.5km
speed: 250kmh hdg: →

aicraft on right side, heading away from us

Dist: 5.00km dir: → alt: 1.5km
speed: 250kmh hdg: ←

aicraft on right side, heading toward our position

Dist: 5.00km dir: ↑ alt: 1.5km
speed: 250kmh hdg: ←

aicraft in front of as, passing by sideways

Dist: 5.00km dir: ↓ alt: 1.5km
speed: 250kmh hdg: ↑

aicraft behind us, heading toward our position

what to you thing about? It would help to determine if the detected aircraft proximity risk is increasing

@error414
Copy link
Copy Markdown
Contributor Author

it's already done in this pull request

https://www.youtube.com/watch?v=vPTyB57Cp44 it works exactly as you said

@DarthPlasma
Copy link
Copy Markdown

it's already done in this pull request

https://www.youtube.com/watch?v=vPTyB57Cp44 it works exactly as you said

Isn't it the vehicle position relative to us?

@error414
Copy link
Copy Markdown
Contributor Author

yes, you can see that durring turn heading if vehicle is changing

@error414 error414 force-pushed the adsb-better-look branch from e0b50e4 to 8f7e71f Compare May 17, 2025 19:10
@error414
Copy link
Copy Markdown
Contributor Author

error414 commented May 17, 2025

recapitulation what this PR changes.

  1. use numbers with integrated dot
  2. added units for distance and altitude diff
  3. added posibility of second line where is emiter type, direction of vehicle and speed, it can be set by
    set osd_adsb_warning_style=EXTENDED default value is "SIMPLE", only one line. OSD preview in configurator shows right version of ADSB element.

Note:
for direction to vehicle I used cardinal icons, and for direction of vehicle is used arrow, it's we exactly same as in "INAV radar". I wanted to folow convention as it's possible.

Tested many times on the field with TT-SC1 and it works without any issue, values from OSD were checked by flight radar.
adsb-info

@error414 error414 marked this pull request as ready for review May 17, 2025 19:15
@error414 error414 changed the title ADSB - Use extended OSD glyphs for dot in numbers ADSB - Use extended OSD glyphs for dot in numbers and second line for ADSB warning May 17, 2025
@error414 error414 closed this Jun 8, 2025
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.

3 participants