AC_PID: add const kP accessor

This commit is contained in:
Randy Mackay 2023-08-29 09:02:22 +09:00 committed by Peter Barker
parent 781c760245
commit 11ddf9f7c7
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public:
void operator()(float p_val, float i_val, float d_val, float ff_val, float imax_val, float input_filt_T_hz, float input_filt_E_hz, float input_filt_D_hz);
// get accessors
const AP_Float &kP() const { return _kp; }
AP_Float &kP() { return _kp; }
AP_Float &kI() { return _ki; }
AP_Float &kD() { return _kd; }