Script execution

This commit is contained in:
2019-08-15 12:59:17 +02:00
parent 2eadbf6107
commit 02ecd314de

View 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()