From 3273ead11b06b024c187ce6be44cdca0562c66b1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 13 Jan 2022 07:12:38 +1100 Subject: [PATCH] Plane: use EKF climb rate estimate in VFR_HUD.climb EKF estimate is both more accurate and less noisy --- ArduPlane/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 33b0aebbfa..4f4d3311fa 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -265,7 +265,7 @@ float GCS_MAVLINK_Plane::vfr_hud_climbrate() const return plane.g2.soaring_controller.get_vario_reading(); } #endif - return AP::baro().get_climb_rate(); + return GCS_MAVLINK::vfr_hud_climbrate(); } void GCS_MAVLINK_Plane::send_wind() const