work around history when ground flag is separated from alt_baro

This commit is contained in:
Matthias Wirth
2025-11-20 14:22:41 +00:00
parent f76b4dfad4
commit 74c3e7d473

View File

@@ -108,7 +108,7 @@ prune() {
jq -c <"$1" >"$2" '
.aircraft |= map(select(has("seen") and .seen < '$INTERVAL' + 2))
| .aircraft[] |= [.hex,
(if .alt_baro != null then .alt_baro elif .altitude != null then .altitude else .alt_geom end),
(if .ground == true then "ground" elif .alt_baro != null then .alt_baro elif .altitude != null then .altitude else .alt_geom end),
(if .gs != null then .gs else .tas end),
.track, .lat, .lon, .seen_pos,
(if .mlat != null and (.mlat | contains(["lat"])) then "mlat"