From fae3b39b1553ad19f875fc6e37109c008b4b99f9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 30 Jul 2024 21:37:50 +1000 Subject: [PATCH] AC_AttitudeControl: rename pid setters to include set_ in the names --- libraries/AC_AttitudeControl/AC_PosControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_AttitudeControl/AC_PosControl.cpp b/libraries/AC_AttitudeControl/AC_PosControl.cpp index afad2ab3ff..3e3ce4c4f1 100644 --- a/libraries/AC_AttitudeControl/AC_PosControl.cpp +++ b/libraries/AC_AttitudeControl/AC_PosControl.cpp @@ -995,7 +995,7 @@ void AC_PosControl::update_z_controller() // ensure imax is always large enough to overpower hover throttle if (_motors.get_throttle_hover() * 1000.0f > _pid_accel_z.imax()) { - _pid_accel_z.imax(_motors.get_throttle_hover() * 1000.0f); + _pid_accel_z.set_imax(_motors.get_throttle_hover() * 1000.0f); } float thr_out; if (_vibe_comp_enabled) {