- pot: handle 0 in alpha_delay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user