Test with reset of error when changing the target temperature. For @pbranly configuration
This commit is contained in:
@@ -48,7 +48,8 @@ class PITemperatureRegulator:
|
||||
"""Set the new target_temp"""
|
||||
self.target_temp = target_temp
|
||||
# Do not reset the accumulated error
|
||||
# self.accumulated_error = 0
|
||||
# Discussion #191. After a target change we should reset the accumulated error which is certainly wrong now.
|
||||
self.accumulated_error = 0
|
||||
|
||||
def calculate_regulated_temperature(
|
||||
self, internal_temp: float, external_temp: float
|
||||
|
||||
Reference in New Issue
Block a user