Plane: fix units in Plane::get_wp_distance_m()

This commit is contained in:
Bob Long 2021-09-07 16:28:59 -04:00 committed by Andrew Tridgell
parent 728d1e76fe
commit 84a89b0b94
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ bool Plane::get_wp_distance_m(float &distance) const
} }
#if HAL_QUADPLANE_ENABLED #if HAL_QUADPLANE_ENABLED
if (quadplane.in_vtol_mode()) { 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; return true;
} }
#endif #endif