From 398a0d89bf836ad348c212136ba6be57c2ea8a87 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 21 Nov 2017 11:34:12 +0900 Subject: [PATCH] AC_P: add const accessor --- libraries/AC_PID/AC_P.h | 1 + 1 file changed, 1 insertion(+) 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[];