Script execution
This commit is contained in:
24
script/test/InterlockMotorGroup.py
Normal file
24
script/test/InterlockMotorGroup.py
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
class InterlockMotors (Interlock):
|
||||
def __init__(self):
|
||||
Interlock.__init__(self, (delta, eta, chi, phi))
|
||||
|
||||
def check(self, (d,e,c, p)):
|
||||
if e>=d:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
class InterlockFourcv (Interlock):
|
||||
def __init__(self):
|
||||
Interlock.__init__(self, (fourcv,))
|
||||
|
||||
def check(self, (p,)):
|
||||
d,e,c, p = p
|
||||
if e>=d:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
interlock1 = InterlockMotors()
|
||||
interlock2 = InterlockFourcv()
|
||||
Reference in New Issue
Block a user