hlcc 2.0.0-beta2+pre1
|
Public Member Functions | |
def | __init__ (self, str uri) |
Initializator for a new CcsCmdsFacadeLgs . | |
def | __del__ (self) |
def | set_asterism_command (self, bool preset, result_slot=None, error_slot=None) |
CCSCmds LGS Slots ##. | |
def | set_tracking_mode_command (self, int mode, result_slot=None, error_slot=None) |
This method executes the Set Tracking Mode command on the server. | |
def | set_operational_mode_command (self, int mode, result_slot=None, error_slot=None) |
This method executes the Set Operational Mode command on the server. | |
def | enable_position_stream_command (self, int unit, bool enable, result_slot=None, error_slot=None) |
This method executes the Enable Position Stream command on the server. | |
def | set_active_command (self, int unit, bool active, result_slot=None, error_slot=None) |
This method executes the Set Active command on the server. | |
def | set_jlm_ignore_command (self, int unit, bool ignore, result_slot=None, error_slot=None) |
This method executes the Set Jlm Ignore command on the server. | |
def | set_jlm_park_position_command (self, int unit, int park_position, result_slot=None, error_slot=None) |
This method executes the Set Jlm Park Position command on the server. | |
def | set_jlm_offset_position_command (self, int unit, float alt_value, float az_value, result_slot=None, error_slot=None) |
This method executes the Set Jlm Offset Position command on the server. | |
def | set_fsm_offset_position_command (self, int unit, float alt_value, float az_value, result_slot=None, error_slot=None) |
This method executes the Set Fsm Offset Position command on the server. | |
def | set_laser_detuning_command (self, int unit, bool detuned, result_slot=None, error_slot=None) |
This method executes the Set Laser Detuning command on the server. | |
def | set_focus_offset_command (self, int unit, float offset, result_slot=None, error_slot=None) |
This method executes the Set Focus Offset command on the server. | |
def | set_operational_state_command (self, int unit, int state, result_slot=None, error_slot=None) |
This method executes the Set Opseratinal State command on the server. | |
def | thread_complete (self) |
Helper Methods ##. | |
def ccscmds_facade.CcsCmdsFacadeLgs.__init__ | ( | self, | |
str | uri | ||
) |
Initializator for a new CcsCmdsFacadeLgs
.
It inherits from MalAdapter, which provides all the connection logic ready to be used.
We mainly interact with MalAdapter through get_interface()
get_mal()
and get_factory()
. We do not keep references to them.
This class exposes Slots that use the elt.cut.task.Task class to execute long-running operations in a separate thread.
uri | URI for the MAL reply request endpoint |
def ccscmds_facade.CcsCmdsFacadeLgs.__del__ | ( | self | ) |
def ccscmds_facade.CcsCmdsFacadeLgs.enable_position_stream_command | ( | self, | |
int | unit, | ||
bool | enable, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Enable Position Stream command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number enabled bool Use fast JLM, FSM position stream or not result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_active_command | ( | self, | |
int | unit, | ||
bool | active, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Active command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number active bool Defining if the specified laser unit is used or not result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_asterism_command | ( | self, | |
bool | preset, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
CCSCmds LGS Slots ##.
This method executes the LGS Positions command on the server. It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
lpc_preset boolean Blind preset without LPC or with LPC acquisition result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_focus_offset_command | ( | self, | |
int | unit, | ||
float | offset, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Focus Offset command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number offset float Cumulative offset command to the currently focus result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_fsm_offset_position_command | ( | self, | |
int | unit, | ||
float | alt_value, | ||
float | az_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Fsm Offset Position command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number alt_value float Delta Altitude value in [rad] az_value float Delta Azimute value in [rad] result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_jlm_ignore_command | ( | self, | |
int | unit, | ||
bool | ignore, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Jlm Ignore command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number ignore bool Flag defining whether the JLM position stream for LGS is applied or ignored result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_jlm_offset_position_command | ( | self, | |
int | unit, | ||
float | alt_value, | ||
float | az_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Jlm Offset Position command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number alt_value float Delta Altitude value in [rad] az_value float Delta Azimute value in [rad] result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_jlm_park_position_command | ( | self, | |
int | unit, | ||
int | park_position, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Jlm Park Position command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number park_postion LgsJlmParkPos Predefined position result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_laser_detuning_command | ( | self, | |
int | unit, | ||
bool | detuned, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Laser Detuning command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number detuned bool Detuned laser unit flag result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_operational_mode_command | ( | self, | |
int | mode, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Operational Mode command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
mode LgsOperationalMode Desired operational mode for the laser guide stars result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_operational_state_command | ( | self, | |
int | unit, | ||
int | state, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Opseratinal State command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
uint int Laser guide stars unit number state LgsOperationalState Operational state of laser unit result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.set_tracking_mode_command | ( | self, | |
int | mode, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the Set Tracking Mode command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
mode LgsTrackingMode Desired tracking mode for the laser guide stars result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def ccscmds_facade.CcsCmdsFacadeLgs.thread_complete | ( | self | ) |
Helper Methods ##.
Print a thread message 'COMPLETE!'