Commit c5016864 authored by Valentin Valls's avatar 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
......@@ -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",[]],
......
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