From eafd702773517bede1a3a61824046f6ceab26074 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 27 Jan 2021 21:38:43 +0900 Subject: [PATCH] AC_WPNav: add comment clarifying get_wp_destination alt frame --- libraries/AC_WPNav/AC_WPNav.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AC_WPNav/AC_WPNav.h b/libraries/AC_WPNav/AC_WPNav.h index b7bae0ff7c..a7c9b0350e 100644 --- a/libraries/AC_WPNav/AC_WPNav.h +++ b/libraries/AC_WPNav/AC_WPNav.h @@ -97,7 +97,9 @@ public: /// get_wp_acceleration - returns acceleration in cm/s/s during missions float get_wp_acceleration() const { return _wp_accel_cmss.get(); } - /// get_wp_destination waypoint using position vector (distance from ekf origin in cm) + /// get_wp_destination waypoint using position vector + /// x,y are distance from ekf origin in cm + /// z may be cm above ekf origin or terrain (see origin_and_destination_are_terrain_alt method) const Vector3f &get_wp_destination() const { return _destination; } /// get origin using position vector (distance from ekf origin in cm)