Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BCU-Vercors
ID26
id26
Commits
0b9831d9
Commit
0b9831d9
authored
Dec 21, 2021
by
bliss administrator
Browse files
background offset compatible with daiquiri compatible fast_shutter
parent
f8270ea3
Pipeline
#62758
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
id26/controllers/auto_offsets.py
View file @
0b9831d9
...
...
@@ -53,21 +53,21 @@ class ID26OffsetShutterFShAtt:
def
open
(
self
):
if
self
.
shutter
.
f
state
()
!=
'
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
.
f
state
()
!=
'
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
.
f
state
()
status1
=
self
.
shutter
.
state
.
value
.
upper
()
status2
=
'CLOSED'
if
self
.
atten
.
factor
()
==
0
else
'OPEN'
status2
=
'OPEN'
if
self
.
atten
.
factor
()
==
63
else
'CLOSED'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment