From c4e6aadaca62b7db3227e699e749e7a08b29bffb Mon Sep 17 00:00:00 2001 From: jens Date: Fri, 11 Dec 2020 08:30:15 +0100 Subject: [PATCH] - pot: handle 0 in alpha_delay --- components/plant/pot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/plant/pot.py b/components/plant/pot.py index 9e610e4..261ea04 100644 --- a/components/plant/pot.py +++ b/components/plant/pot.py @@ -21,7 +21,7 @@ class Pot(APlant): self.theta_amb = theta_amb self.alpha = self.dt / 1 - self.alpha_delay = self.dt/self.Td + self.alpha_delay = self.dt/self.Td if self.Td > 0 else 1 self.power_set = 0 self.power_actual = 0