diff --git a/components/pid/temp_controller.py b/components/pid/temp_controller.py index 960dd2e..e5feb20 100644 --- a/components/pid/temp_controller.py +++ b/components/pid/temp_controller.py @@ -19,7 +19,7 @@ class TempController(AttributeChange): self.pid_hold = pid.Pid(params_pid['Hold']) self.pid_rate = pid.Pid(params_pid['Heat']) - self.theta_ist_set = 0 + self.theta_ist_set = 20 self.theta_soll_set = 0 self.heatrate_ist_set = 0 self.heatrate_soll_set = 1.0 @@ -30,7 +30,7 @@ class TempController(AttributeChange): self.y = 0 self.state = States.IDLE self.use_kalman = True - self.kalman.initial((20, 0)) + self.kalman.initial((self.theta_ist_set, 0)) def set_theta_ist(self, value): self.theta_ist_set = value