[server] extract airspeed from AIR_DATA message. (#2914)

This commit is contained in:
Fabien-B
2022-10-05 16:24:51 +02:00
committed by GitHub
parent 1a9fbc348a
commit 2a580c0c7e
@@ -240,6 +240,8 @@ let log_and_parse = fun ac_name (a:Aircraft_server.aircraft) msg values ->
a.agl <- a.alt -. (try float (Srtm.of_wgs84 a.pos) with _ -> a.ground_alt)
| "AIRSPEED" ->
a.airspeed <- fvalue "airspeed"
| "AIR_DATA" ->
a.airspeed <- fvalue "airspeed"
| "DESIRED" ->
(* Trying to be compatible with old logs ... *)
begin match a.nav_ref with