From b0ee323e2e01ba2084bea8de733f16474f1167eb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 6 Jul 2018 13:27:05 -0400 Subject: 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 --- klippy/extras/pid_calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/pid_calibrate.py') 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 -- cgit v1.2.3-70-g09d2