mirror of
https://github.com/smittix/intercept.git
synced 2026-07-25 09:18:10 -07:00
Fix VDL2 messages not appearing in aircraft datalink panel
Root cause: dumpvdl2 outputs nested JSON (vdl2.avlc.acars.flight) but FlightCorrelator only checks top-level fields. VDL2 messages were stored in the correlator but never matched to any aircraft. Fix: Promote identifying fields (flight, reg, tail, icao, addr, label, text) from the nested VDL2 structure to top-level before storing in the correlator. Also promote AVLC source address as ICAO when src.type is "Aircraft". Also fix VDL2 sidebar timestamps to use global InterceptTime setting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4930,7 +4930,9 @@ sudo make install</code>
|
||||
const acars = avlc.acars || {};
|
||||
const flight = acars.flight || '';
|
||||
const msgText = acars.msg_text || '';
|
||||
const time = new Date().toLocaleTimeString();
|
||||
const time = typeof InterceptTime !== 'undefined'
|
||||
? InterceptTime.shortTime(new Date()) + InterceptTime.tzSuffix()
|
||||
: new Date().toLocaleTimeString();
|
||||
const freq = inner.freq ? (inner.freq / 1000000).toFixed(3) : '';
|
||||
|
||||
// Store for CSV export
|
||||
|
||||
Reference in New Issue
Block a user