From 96c3e1a758e195c42ba7d900bf4ad0e738e9b9a5 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 14 Sep 2022 21:13:45 +0100 Subject: [PATCH] Plane: always report the airspeed estimate being used in VFR hud --- ArduPlane/GCS_Mavlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 2e37f74e54..115ca4634c 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -248,8 +248,8 @@ float GCS_MAVLINK_Plane::vfr_hud_airspeed() const // ground speed. When reporting we should send the true airspeed // value if possible: #if AP_AIRSPEED_ENABLED - if (plane.airspeed.enabled() && plane.airspeed.healthy()) { - return plane.airspeed.get_airspeed(); + if (plane.ahrs.airspeed_sensor_enabled()) { + return plane.airspeed.get_airspeed(plane.ahrs.get_active_airspeed_index()); } #endif