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