fix(local-adsb): show a 359.7° track as TRK 0°, not TRK 360°

The Local ADS-B card rounded the track without wrapping, so an aircraft
tracking 359.5° or more read "TRK 360°". The rounded track now wraps
to 0°.
This commit is contained in:
Rudy Celekli committed 2026-10-25 15:58:46 -04:00
1 parent ac8dc84f3c
commit 315c0f5dc6
3 files changed
+23 -1

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ export function localAdsbCardModel(
t('ALT {altitude} FT · GS {speed} KT · TRK {track}', {
altitude: grouped(altitude),
speed: speed === null ? DASH : speed,
track: track === null ? DASH : `${track}°`,
track: track === null ? DASH : `${track % 360}°`,
}),
vertical === null
? t('V/S {rate}', { rate: DASH })