- refactored
This commit is contained in:
@@ -2,9 +2,9 @@ import numpy as np
|
||||
|
||||
|
||||
class Delay:
|
||||
def __init__(self, dt, delay):
|
||||
def __init__(self, dt, delay, ic):
|
||||
nd = int(delay/dt + 0.5)
|
||||
self.delay_line = np.zeros(nd+1)
|
||||
self.delay_line = np.ones(nd+1)*ic
|
||||
self.ri = 0
|
||||
self.wi = 0
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@ class Pot(APlant):
|
||||
self.L = params['L']
|
||||
self.Td = params['Td']
|
||||
self.kn = params['kn']
|
||||
self.temp = params['theta']
|
||||
self.temp = 0
|
||||
self.temp_intermediate = params['theta']
|
||||
|
||||
self.theta_amb = theta_amb
|
||||
|
||||
self.power_set = 0
|
||||
self.delay = Delay(self.dt, self.Td)
|
||||
self.delay = Delay(self.dt, self.Td, params['theta'])
|
||||
|
||||
def activate(self, enable):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user