diff --git a/libraries/AC_PID/AC_P.h b/libraries/AC_PID/AC_P.h index c64f52741a..e173d296e9 100644 --- a/libraries/AC_PID/AC_P.h +++ b/libraries/AC_PID/AC_P.h @@ -56,6 +56,7 @@ public: // accessors AP_Float &kP() { return _kp; } + const AP_Float &kP() const { return _kp; } void kP(const float v) { _kp.set(v); } static const struct AP_Param::GroupInfo var_info[];