From 71fae1e6f296fb0cf58d3348e08d997a38fb52cd Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 6 May 2014 16:35:19 +0900 Subject: [PATCH] AC_AttControl: lean_angle_max accessor fn const --- libraries/AC_AttitudeControl/AC_AttitudeControl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.h b/libraries/AC_AttitudeControl/AC_AttitudeControl.h index 85f94ff8ed..aa1942bad6 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.h +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.h @@ -142,7 +142,7 @@ public: // // lean_angle_max - maximum lean angle of the copter in centi-degrees - int16_t lean_angle_max() { return _aparm.angle_max; } + int16_t lean_angle_max() const { return _aparm.angle_max; } // user settable parameters static const struct AP_Param::GroupInfo var_info[];