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 --- config/example.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/example.cfg') diff --git a/config/example.cfg b/config/example.cfg index dd4b7d28..cf02bf19 100644 --- a/config/example.cfg +++ b/config/example.cfg @@ -161,6 +161,10 @@ sensor_pin: analog13 #adc_voltage: 5.0 # The ADC comparison voltage. This parameter is only valid when the # sensor is an AD595 or "PT100 INA826". The default is 5 volts. +#smooth_time: 2.0 +# A time value (in seconds) over which temperature measurements will +# be smoothed to reduce the impact of measurement noise. The default +# is 2 seconds. control: pid # Control algorithm (either pid or watermark). This parameter must # be provided. @@ -173,10 +177,6 @@ pid_Ki: 1.08 pid_Kd: 114 # Kd is the "derivative" constant for the pid. This parameter must # be provided for PID heaters. -#pid_deriv_time: 2.0 -# A time value (in seconds) over which the derivative in the pid -# will be smoothed to reduce the impact of measurement noise. The -# default is 2 seconds. #pid_integral_max: # The maximum "windup" the integral term may accumulate. The default # is to use the same value as max_power. -- cgit v1.2.3-70-g09d2