diff --git a/Control/brewpi/controller.py b/Control/brewpi/controller.py index ca66f34..bbfb76e 100644 --- a/Control/brewpi/controller.py +++ b/Control/brewpi/controller.py @@ -152,7 +152,7 @@ class Controller(): # The loop # ------------------------------ doLoop = True - useKalman = True + useKalman = False while(doLoop): time_start = time.time() @@ -186,10 +186,8 @@ class Controller(): ctrl_theta = theta_ist_k ctrl_dtheta = dtheta_ist_k else: - theta_err = theta_soll - theta_ist - dtheta_err = heatrate_soll - dtheta_ist - ctrl_theta_err = self.theta_err_sm.process(theta_err) - ctrl_heatrate_err = self.heatrate_err_sm.process(60/self.dt * dtheta_err) + ctrl_theta_err = self.theta_err_sm.process(theta_soll - theta_ist) + ctrl_heatrate_err = self.heatrate_err_sm.process(heatrate_soll - 60/self.dt * dtheta_ist) ctrl_theta = theta_ist ctrl_dtheta = dtheta_ist