Fix ADS-B field name: use 'alt' instead of 'altitude'

Dashboard expects 'alt' but backend was sending 'altitude'.
Fixed in MSG,3 and MSG,5 parsing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
James Smith
2025-12-22 17:13:06 +00:00
parent 77479c0d5c
commit 1d699bf3c8

View File

@@ -12119,7 +12119,7 @@ def parse_sbs_stream(service_addr):
if len(parts) > 15:
if parts[11]:
try:
aircraft['altitude'] = int(float(parts[11]))
aircraft['alt'] = int(float(parts[11]))
except:
pass
if parts[14] and parts[15]:
@@ -12153,7 +12153,7 @@ def parse_sbs_stream(service_addr):
aircraft['callsign'] = callsign
if parts[11]:
try:
aircraft['altitude'] = int(float(parts[11]))
aircraft['alt'] = int(float(parts[11]))
except:
pass