wip proof of concept done in gui
This commit is contained in:
@@ -138,6 +138,7 @@ class XRayEye(BECWidget, QWidget):
|
||||
|
||||
# Connection to redis endpoints
|
||||
self.bec_dispatcher.connect_slot(self.device_updates, MessageEndpoints.device_readback("omny_xray_gui"))
|
||||
self.bec_dispatcher.connect_slot(self.getting_camera_status, MessageEndpoints.device_read_configuration(CAMERA[0]))
|
||||
# self.bec_dispatcher.connect_slot(self.camera_running,MessageEndpoints.device_preview(CAMERA[0],CAMERA[1])) #TODO put better way how to sync property of device
|
||||
self.connect_motors()
|
||||
self.resize(800, 600)
|
||||
@@ -345,6 +346,11 @@ class XRayEye(BECWidget, QWidget):
|
||||
self.camera_running_toggle.checked = enabled
|
||||
self.camera_running_toggle.blockSignals(False)
|
||||
|
||||
@SafeSlot(dict,dict)
|
||||
def getting_camera_status(self,data,meta):
|
||||
print(f'data: {data}')
|
||||
print(f'meta: {meta}')
|
||||
|
||||
@SafeSlot(dict,dict)
|
||||
def camera_running(self,data,meta):
|
||||
...
|
||||
@@ -396,6 +402,10 @@ class XRayEye(BECWidget, QWidget):
|
||||
self.on_live_view_enabled(bool(enable_live_preview))
|
||||
self.on_motors_enable(bool(enable_x_motor), bool(enable_y_motor))
|
||||
|
||||
#TODO hook the waveform plotting logic
|
||||
fov_array = signals.get("omny_xray_gui_fov_array").get('value')
|
||||
print(f"fov_array: {fov_array}")
|
||||
|
||||
# Signals from epics gui device
|
||||
# send message
|
||||
user_message = signals.get("omny_xray_gui_send_message").get('value')
|
||||
|
||||
Reference in New Issue
Block a user