- added initial for filling Delay line
- added gain parameter for Pot sim - from state change to heat init model temp with plant temp - updated config template
This commit is contained in:
@@ -9,8 +9,8 @@ class Pot(APlant):
|
||||
|
||||
self.e = 0
|
||||
self.x = 0
|
||||
self.gain = 0.999
|
||||
|
||||
self.gain = params['gain']
|
||||
self.C = params['C']
|
||||
self.M = params['M']
|
||||
self.L = params['L']
|
||||
@@ -24,6 +24,11 @@ class Pot(APlant):
|
||||
self.power_set = 0
|
||||
self.delay = Delay(self.dt, self.Td, params['theta'])
|
||||
|
||||
def initial(self, temp):
|
||||
self.temp_intermediate = temp
|
||||
self.temp = temp
|
||||
self.delay.initial(temp)
|
||||
|
||||
def activate(self, enable):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user