fix(local-adsb): show a decoder feed's GNSS-sourced vertical rate

dump1090-fa and readsb file an aircraft's vertical rate under geom_rate
instead of baro_rate when its source is GNSS. The decoder-feed adapter
read only baro_rate, so those aircraft showed "V/S —" on the Local ADS-B
card. It now falls back to geom_rate; a sent baro_rate still wins.
This commit is contained in:
Aditya committed 2026-10-28 15:18:37 +05:30
1 parent a4d3701c3c
commit c7377362a5
3 files changed
+20 -2

No files matched your search

+3 -1
View File
@@ -247,7 +247,9 @@ export function normalizeDump1090Aircraft(json, nowMs, { band = '1090' } = {}) {
altitudeFt: altitude,
groundSpeedKt: finiteOrNull(entry.gs),
trackDeg: normalizeTrack(entry.track),
verticalRateFpm: finiteOrNull(entry.baro_rate),
// A GNSS-sourced rate is sent as geom_rate instead of baro_rate.
verticalRateFpm:
finiteOrNull(entry.baro_rate) ?? finiteOrNull(entry.geom_rate),
lastPositionAt: hasPosition
? receivedAt - Math.max(0, seenPosS) * 1000
: null,