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
LimaGroup
Lima-camera-simulator
Commits
c5016864
Commit
c5016864
authored
Oct 13, 2021
by
Valentin Valls
Browse files
Allow to setup pixel size at tango lima startup
parent
e9a1ca8a
Pipeline
#63351
passed with stages
in 10 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tango/Simulator.py
View file @
c5016864
...
...
@@ -120,6 +120,10 @@ class Simulator(PyTango.Device_4Impl):
frame_dim
=
self
.
getFrameDimFromLongArray
(
self
.
frame_dim
)
_SimuCamera
.
setFrameDim
(
frame_dim
)
if
self
.
pixel_size
:
pixel_size
=
self
.
pixel_size
_SimuCamera
.
setPixelSize
(
pixel_size
[
0
],
pixel_size
[
1
])
self
.
set_state
(
PyTango
.
DevState
.
ON
)
@
Core
.
DEB_MEMBER_FUNCT
...
...
@@ -220,6 +224,9 @@ class SimulatorClass(PyTango.DeviceClass):
'frame_dim'
:
[
PyTango
.
DevVarLongArray
,
"Frame dimension in the form: width, height, depth"
,
[]],
'pixel_size'
:
[
PyTango
.
DevVarDoubleArray
,
"Pixel size in the form: width, height (in meter)"
,
[]],
'mode'
:
[
PyTango
.
DevString
,
"Simulator mode: GENERATOR, GENERATOR_PREFETCH, LOADER, LOADER_PREFETCH"
,[]],
...
...
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