Browse Source

AC_PosControl: fix comment

In ArduCopter/mode.cpp, ignore_descent_limit is FALSE unless landing:

        // do not ignore limits until we have slowed down for landing
        ignore_descent_limit = (MAX(g2.land_alt_low,100) > get_alt_above_ground_cm()) || copter.ap.land_complete_maybe;
gps-1.3.1
RickReeser 3 years ago committed by Randy Mackay
parent
commit
d95c997606
  1. 2
      libraries/AC_AttitudeControl/AC_PosControl.cpp

2
libraries/AC_AttitudeControl/AC_PosControl.cpp

@ -860,7 +860,7 @@ void AC_PosControl::set_pos_target_z_from_climb_rate_cm(float vel) @@ -860,7 +860,7 @@ void AC_PosControl::set_pos_target_z_from_climb_rate_cm(float vel)
/// land_at_climb_rate_cm - adjusts target up or down using a commanded climb rate in cm/s
/// using the default position control kinematic path.
/// ignore_descent_limit turns off output saturation handling to aid in landing detection. ignore_descent_limit should be true unless landing.
/// ignore_descent_limit turns off output saturation handling to aid in landing detection. ignore_descent_limit should be false unless landing.
void AC_PosControl::land_at_climb_rate_cm(float vel, bool ignore_descent_limit)
{
input_vel_accel_z(vel, 0, ignore_descent_limit);

Loading…
Cancel
Save