Commit 0b9831d9 authored by bliss administrator's avatar bliss administrator
Browse files

background offset compatible with daiquiri compatible fast_shutter

parent f8270ea3
Pipeline #62758 failed
......@@ -53,21 +53,21 @@ class ID26OffsetShutterFShAtt:
def open (self):
if self.shutter.fstate() != 'AUTO':
if self.shutter.state != ID26FastShutterState.AUTO:
print ('opening', self.shutter.name)
self.shutter.open()
print ('opening', self.atten.name)
self.atten.factor(63)
def close (self):
if self.shutter.fstate() != 'AUTO':
if self.shutter.state != ID26FastShutterState.AUTO:
print ('closing', self.shutter.name)
self.shutter.close()
print ('closing', self.atten.name)
self.atten.factor(0)
def state (self):
status1 = self.shutter.fstate()
status1 = self.shutter.state.value.upper()
status2 = 'CLOSED' if self.atten.factor() == 0 else 'OPEN'
status2 = 'OPEN' if self.atten.factor() == 63 else 'CLOSED'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment