heaters: Remove support for deprecated pid_integral_max option

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-24 21:46:00 -04:00
parent 6e0431907d
commit 8bfcedfb42
1 changed files with 1 additions and 4 deletions

View File

@ -180,12 +180,9 @@ class ControlPID:
self.Ki = config.getfloat('pid_Ki') / PID_PARAM_BASE
self.Kd = config.getfloat('pid_Kd') / PID_PARAM_BASE
self.min_deriv_time = heater.get_smooth_time()
config.deprecate('pid_integral_max')
imax = config.getfloat('pid_integral_max', self.heater_max_power,
minval=0.)
self.temp_integ_max = 0.
if self.Ki:
self.temp_integ_max = imax / self.Ki
self.temp_integ_max = self.heater_max_power / self.Ki
self.prev_temp = AMBIENT_TEMP
self.prev_temp_time = 0.
self.prev_temp_deriv = 0.