temperature_fan: Remove deprecated pid_integral_max option

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-04-07 12:10:48 -04:00
parent 40c2d11ef8
commit 647a1cd8ca
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,9 @@ All dates in this document are approximate.
## Changes ## Changes
20220407: The temperature_fan `pid_integral_max` config option has
been removed (it was deprecated on 20210612).
20220407: The default color order for pca9632 LEDs is now "RGBW". Add 20220407: The default color order for pca9632 LEDs is now "RGBW". Add
an explicit `color_order: RBGW` setting to the pca9632 config section an explicit `color_order: RBGW` setting to the pca9632 config section
to obtain the previous behavior. to obtain the previous behavior.

View File

@ -147,9 +147,7 @@ class ControlPID:
self.Ki = config.getfloat('pid_Ki') / PID_PARAM_BASE self.Ki = config.getfloat('pid_Ki') / PID_PARAM_BASE
self.Kd = config.getfloat('pid_Kd') / PID_PARAM_BASE self.Kd = config.getfloat('pid_Kd') / PID_PARAM_BASE
self.min_deriv_time = config.getfloat('pid_deriv_time', 2., above=0.) self.min_deriv_time = config.getfloat('pid_deriv_time', 2., above=0.)
imax = config.getfloat('pid_integral_max', self.temp_integ_max = self.temperature_fan.get_max_speed() / self.Ki
self.temperature_fan.get_max_speed(), minval=0.)
self.temp_integ_max = imax / self.Ki
self.prev_temp = AMBIENT_TEMP self.prev_temp = AMBIENT_TEMP
self.prev_temp_time = 0. self.prev_temp_time = 0.
self.prev_temp_deriv = 0. self.prev_temp_deriv = 0.