From 14d76d158a0149e48af680423ba64a5e72e422c1 Mon Sep 17 00:00:00 2001 From: Robert Lefebvre Date: Fri, 30 Jan 2015 15:42:42 -0500 Subject: [PATCH] AC_AttitudeControl: Correct comment. --- libraries/AC_AttitudeControl/AC_PosControl.cpp | 2 +- libraries/AC_AttitudeControl/AC_PosControl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AC_AttitudeControl/AC_PosControl.cpp b/libraries/AC_AttitudeControl/AC_PosControl.cpp index aea0cb1c93..39bd43e2b5 100644 --- a/libraries/AC_AttitudeControl/AC_PosControl.cpp +++ b/libraries/AC_AttitudeControl/AC_PosControl.cpp @@ -166,7 +166,7 @@ void AC_PosControl::set_target_to_stopping_point_z() get_stopping_point_z(_pos_target); } -/// get_stopping_point_z - sets stopping_point.z to a reasonable stopping altitude in cm above home +/// get_stopping_point_z - calculates stopping point based on current position, velocity, vehicle acceleration void AC_PosControl::get_stopping_point_z(Vector3f& stopping_point) const { const float curr_pos_z = _inav.get_altitude(); diff --git a/libraries/AC_AttitudeControl/AC_PosControl.h b/libraries/AC_AttitudeControl/AC_PosControl.h index 213f3de3aa..fad6a88888 100644 --- a/libraries/AC_AttitudeControl/AC_PosControl.h +++ b/libraries/AC_AttitudeControl/AC_PosControl.h @@ -128,7 +128,7 @@ public: /// set_target_to_stopping_point_z - sets altitude target to reasonable stopping altitude in cm above home void set_target_to_stopping_point_z(); - /// get_stopping_point_z - sets stopping_point.z to a reasonable stopping altitude in cm above home + /// get_stopping_point_z - calculates stopping point based on current position, velocity, vehicle acceleration void get_stopping_point_z(Vector3f& stopping_point) const; /// init_takeoff - initialises target altitude if we are taking off