aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-06 13:27:05 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-06 13:47:10 -0400
commitb0ee323e2e01ba2084bea8de733f16474f1167eb (patch)
tree754f64b85226918a2a136789bfc5aebe6838cb37 /klippy/extras
parent32175bc66ae9cbc7ddbf604740f8c51fdee2b6e3 (diff)
downloadkutter-b0ee323e2e01ba2084bea8de733f16474f1167eb.tar.gz
kutter-b0ee323e2e01ba2084bea8de733f16474f1167eb.tar.xz
kutter-b0ee323e2e01ba2084bea8de733f16474f1167eb.zip
heater: Introduce smooth_time config option; remove pid_deriv_time
Add generic temperature smoothing to the Heater class. This is useful to avoid min_extrude_temp and verify_heater errors due to measurement noise. Rename the pid_deriv_time config option to smooth_time so that the smoothing amount need only be specified once. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/pid_calibrate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py
index 05ec6e99..b087f2b3 100644
--- a/klippy/extras/pid_calibrate.py
+++ b/klippy/extras/pid_calibrate.py
@@ -86,7 +86,7 @@ class ControlAutoTune:
if temp > self.peak:
self.peak = temp
self.peak_time = read_time
- def check_busy(self, eventtime, last_temp, target_temp):
+ def check_busy(self, eventtime, smoothed_temp, target_temp):
if self.heating or len(self.peaks) < 12:
return True
return False