From 7ec7b478f082e74e5bd80092ede67aac2fa710d3 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Mon, 30 Aug 2021 19:24:58 +0100 Subject: [PATCH] AC_WPNav: add getter for wp_radius_cm --- libraries/AC_WPNav/AC_WPNav.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AC_WPNav/AC_WPNav.h b/libraries/AC_WPNav/AC_WPNav.h index f30bd581b2..158f6f7976 100644 --- a/libraries/AC_WPNav/AC_WPNav.h +++ b/libraries/AC_WPNav/AC_WPNav.h @@ -140,6 +140,8 @@ public: return get_wp_distance_to_destination() < _wp_radius_cm; } + float get_wp_radius_cm() const { return _wp_radius_cm; } + /// update_wpnav - run the wp controller - should be called at 100hz or higher virtual bool update_wpnav();