- init kalman_model_delay

This commit is contained in:
jens
2021-10-12 12:07:36 +02:00
parent 16cb3d3b3c
commit b4a6c70591
+1
View File
@@ -144,6 +144,7 @@ class TempController(APid):
if state_next == States.HEAT: if state_next == States.HEAT:
self.model.initial(self.theta_ist) self.model.initial(self.theta_ist)
self.kalman_model.initial((self.theta_ist, 0)) self.kalman_model.initial((self.theta_ist, 0))
self.kalman_model_delay.initial((self.theta_ist, 0))
def process_pid(self, theta_err, heatrate_err): def process_pid(self, theta_err, heatrate_err):
self.pid_hold.process(theta_err, -self.theta_ist) self.pid_hold.process(theta_err, -self.theta_ist)