From 84a89b0b943411e9b62f657380ad95ec8b86bb78 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Tue, 7 Sep 2021 16:28:59 -0400 Subject: [PATCH] Plane: fix units in Plane::get_wp_distance_m() --- ArduPlane/ArduPlane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 88a52fa97a..f779f61226 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -657,7 +657,7 @@ bool Plane::get_wp_distance_m(float &distance) const } #if HAL_QUADPLANE_ENABLED if (quadplane.in_vtol_mode()) { - distance = quadplane.using_wp_nav() ? quadplane.wp_nav->get_wp_distance_to_destination() : 0; + distance = quadplane.using_wp_nav() ? quadplane.wp_nav->get_wp_distance_to_destination() * 0.01 : 0; return true; } #endif