mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 06:01:56 -07:00
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:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user