fix(flights): an adsb.lol aircraft with no ground track faces its true heading, not north

This commit is contained in:
Sameh Khamis committed 2026-11-13 11:50:05 -08:00
1 parent 0b1dc325bc
commit 693faae44e
4 files changed
+22 -2

No files matched your search

+2 -1
View File
@@ -71,7 +71,8 @@ export function normalizeReadsbAircraft(row, snapshotTimeMs) {
ellipsoidAltitudeM: geoFt == null ? null : geoFt * 0.3048,
onGround: cleanText(row.alt_baro).toLowerCase() === 'ground',
speedMps: speedKts == null ? null : speedKts * 0.514444,
courseDeg: finite(row.track),
// No track (parked, slow): the true heading, where the nose points.
courseDeg: finite(row.track) ?? finite(row.true_heading),
verticalRateMps: rateFtMin == null ? null : rateFtMin * 0.00508,
category: row.category ?? null,
typeCode: cleanText(row.t),