From 424f1d0d0fd2c37d75458f4b302204742b552b4b Mon Sep 17 00:00:00 2001 From: jens Date: Thu, 10 Dec 2020 09:40:38 +0100 Subject: [PATCH] - fixed initial value for temp_controller --- components/pid/temp_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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