diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-24 21:46:00 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-11-02 12:45:11 -0400 |
commit | 8bfcedfb42b3f0918e045493d15b88cd49160fbe (patch) | |
tree | 9f006f6cebd96825c72e03bde35af1ebf5650af6 /klippy/extras/heaters.py | |
parent | 6e0431907de4c551553ed527746bd684bdf2c78f (diff) | |
download | kutter-8bfcedfb42b3f0918e045493d15b88cd49160fbe.tar.gz kutter-8bfcedfb42b3f0918e045493d15b88cd49160fbe.tar.xz kutter-8bfcedfb42b3f0918e045493d15b88cd49160fbe.zip |
heaters: Remove support for deprecated pid_integral_max option
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/heaters.py')
-rw-r--r-- | klippy/extras/heaters.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py index 74b40926..e80c5d0c 100644 --- a/klippy/extras/heaters.py +++ b/klippy/extras/heaters.py @@ -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. |