mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(flights): an adsb.lol aircraft with no ground track faces its true heading, not north
This commit is contained in:
1 parent
0b1dc325bc
commit
693faae44e
4 files changed
+22
-2
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user