From 0a3559813ab9cad68743fedce858b50db6fc3f56 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 15 Jan 2014 15:22:30 +0900 Subject: [PATCH] AC_WPNav: accessor for loiter speed --- libraries/AC_WPNav/AC_WPNav.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AC_WPNav/AC_WPNav.h b/libraries/AC_WPNav/AC_WPNav.h index d435ed61f0..f74ad18547 100644 --- a/libraries/AC_WPNav/AC_WPNav.h +++ b/libraries/AC_WPNav/AC_WPNav.h @@ -70,6 +70,9 @@ public: /// get_stopping_point - returns vector to stopping point based on a horizontal position and velocity void get_stopping_point(const Vector3f& position, const Vector3f& velocity, Vector3f &target) const; + /// set_loiter_velocity - allows main code to pass the maximum velocity for loiter + void set_loiter_velocity(float velocity_cms) { _loiter_speed_cms = velocity_cms; }; + /// /// waypoint controller ///