|
|
|
@ -903,7 +903,7 @@ void AC_AttitudeControl::accel_limiting(bool enable_limits)
@@ -903,7 +903,7 @@ void AC_AttitudeControl::accel_limiting(bool enable_limits)
|
|
|
|
|
float AC_AttitudeControl::get_althold_lean_angle_max() const |
|
|
|
|
{ |
|
|
|
|
// convert to centi-degrees for public interface
|
|
|
|
|
return ToDeg(_althold_lean_angle_max) * 100.0f; |
|
|
|
|
return MAX(ToDeg(_althold_lean_angle_max), AC_ATTITUDE_CONTROL_ANGLE_LIMIT_MIN) * 100.0f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Proportional controller with piecewise sqrt sections to constrain second derivative
|
|
|
|
|