aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/heaters.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-09-01 12:54:25 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-09-03 18:11:05 -0400
commitc84956befe88daeeb9512acaa9fa82395665df16 (patch)
tree517a34f0f9abbcfc1d1b78ac8833f85aa4265c98 /klippy/extras/heaters.py
parentaf3622544d8adc6ce92dd47d1f1087b970ad8b6e (diff)
downloadkutter-c84956befe88daeeb9512acaa9fa82395665df16.tar.gz
kutter-c84956befe88daeeb9512acaa9fa82395665df16.tar.xz
kutter-c84956befe88daeeb9512acaa9fa82395665df16.zip
heaters: Change default smooth_time from 2 seconds to 1 second
A larger smooth_time results in a slower reaction time for the PID. This increased delay can cause temperature oscillations with high power heaters. Many boards produce good results without any smoothing. So, it seems a smooth_time of 1 second is a better default. Reported by @ReXT3D. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/heaters.py')
-rw-r--r--klippy/extras/heaters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index e63881dc..b9f60e63 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -34,7 +34,7 @@ class Heater:
is not None)
self.can_extrude = self.min_extrude_temp <= 0. or is_fileoutput
self.max_power = config.getfloat('max_power', 1., above=0., maxval=1.)
- self.smooth_time = config.getfloat('smooth_time', 2., above=0.)
+ self.smooth_time = config.getfloat('smooth_time', 1., above=0.)
self.inv_smooth_time = 1. / self.smooth_time
self.lock = threading.Lock()
self.last_temp = self.smoothed_temp = self.target_temp = 0.