diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-07-06 13:27:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-07-06 13:47:10 -0400 |
commit | b0ee323e2e01ba2084bea8de733f16474f1167eb (patch) | |
tree | 754f64b85226918a2a136789bfc5aebe6838cb37 /klippy/extras/pid_calibrate.py | |
parent | 32175bc66ae9cbc7ddbf604740f8c51fdee2b6e3 (diff) | |
download | kutter-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/pid_calibrate.py')
-rw-r--r-- | klippy/extras/pid_calibrate.py | 2 |
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 |