hlcc 2.0.0-beta2+pre1
|
Public Member Functions | |
def | __init__ (self, str uri) |
Initializator for a new CcsCmdsFacadeNonLgs . | |
def | __del__ (self) |
def | preset_command (self, float ra_value, float dec_value, result_slot=None, error_slot=None) |
CCSCmds Non-Lgs Slots ##. | |
def | preset_ephemeris_command (self, str filepath, result_slot=None, error_slot=None) |
This method executes the preset ephemeris command on the server. | |
def | request_control_command (self, int mode_value, result_slot=None, error_slot=None) |
This method executes the request control command on the server. | |
def | release_control_command (self, result_slot=None, error_slot=None) |
This method executes the release control command on the server. | |
def | get_configuration_command (self, result_slot=None, error_slot=None) |
This method executes the get configuration command on the server. | |
def | set_observing_wavelength_command (self, float length_value, result_slot=None, error_slot=None) |
This method executes the set oserving wavelength command on the server. | |
def | set_velocity_offset_command (self, float ra_value, float dec_value, result_slot=None, error_slot=None) |
This method executes the set velocity offset command on the server. | |
def | set_offset_set_sky_command (self, float ra_value, float dec_value, bool stabilization_value, result_slot=None, error_slot=None) |
Offset ###. | |
def | set_offset_set_focal_plane_command (self, float x_value, float y_value, bool stabilization_value, result_slot=None, error_slot=None) |
This method executes the offset set focal plane command on the server. | |
def | set_reference_focus_command (self, float offset_value, result_slot=None, error_slot=None) |
External Reference ###. | |
def | set_reference_aberration_command (self, result_slot=None, error_slot=None) |
This method executes the set reference aberration command on the server. | |
def | rous_configuration_command (self, bool mode_value, result_slot=None, error_slot=None) |
Stroke Management ###. | |
def | rous_execute_command (self, result_slot=None, error_slot=None) |
This method executes the ROUS execute command on the server. | |
def | thread_complete (self) |
Helper Methods ##. | |
def ccscmds_facade.CcsCmdsFacadeNonLgs.__init__ | ( | self, | |
str | uri | ||
) |
Initializator for a new CcsCmdsFacadeNonLgs
.
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.CcsCmdsFacadeNonLgs.__del__ | ( | self | ) |
def ccscmds_facade.CcsCmdsFacadeNonLgs.get_configuration_command | ( | self, | |
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the get configuration 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.
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.CcsCmdsFacadeNonLgs.preset_command | ( | self, | |
float | ra_value, | ||
float | dec_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
CCSCmds Non-Lgs Slots ##.
Telescope ###
This method executes the Preset 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.
ra_value float Right Ascension in Radians dec_value float
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.CcsCmdsFacadeNonLgs.preset_ephemeris_command | ( | self, | |
str | filepath, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the preset ephemeris 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.
filepath string Absolute filepath that containes data/information that will be converted in to PresetEphemArgs structure, accepted by the CCS interface method 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.CcsCmdsFacadeNonLgs.release_control_command | ( | self, | |
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the release control 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.
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.CcsCmdsFacadeNonLgs.request_control_command | ( | self, | |
int | mode_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the request control 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_value ControlMode Decide how many inputs the control loop will interpret (CASCADE or SEQUENCIAL) 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.CcsCmdsFacadeNonLgs.rous_configuration_command | ( | self, | |
bool | mode_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
Stroke Management ###.
This method executes the ROUS configuration 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_value bool Disables/avoids the automatic execution of ROUS maneuvers 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.CcsCmdsFacadeNonLgs.rous_execute_command | ( | self, | |
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the ROUS execute 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.
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.CcsCmdsFacadeNonLgs.set_observing_wavelength_command | ( | self, | |
float | length_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the set oserving wavelength 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.
length_value float The instrument pointing origin in [m] 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.CcsCmdsFacadeNonLgs.set_offset_set_focal_plane_command | ( | self, | |
float | x_value, | ||
float | y_value, | ||
bool | stabilization_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the offset set focal plane 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.
x_value float Abscissa value in m y_value float Ordinate value in m stabilization_value OffsetFieldStabilitizationMode Offset field stabilization mode value 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.CcsCmdsFacadeNonLgs.set_offset_set_sky_command | ( | self, | |
float | ra_value, | ||
float | dec_value, | ||
bool | stabilization_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
Offset ###.
This method executes the offset set sky 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.
ra_value float Right Ascension in arcsec/s dec_value float
Offset field stabilization mode value 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.CcsCmdsFacadeNonLgs.set_reference_aberration_command | ( | self, | |
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the set reference aberration 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.
offset_value float Intrument focus offset value 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.CcsCmdsFacadeNonLgs.set_reference_focus_command | ( | self, | |
float | offset_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
External Reference ###.
This method executes the set reference focus 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.
offset_value float Intrument focus offset value 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.CcsCmdsFacadeNonLgs.set_velocity_offset_command | ( | self, | |
float | ra_value, | ||
float | dec_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the set velocity 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.
ra_value float Right Ascension in Radians dec_value float
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.CcsCmdsFacadeNonLgs.thread_complete | ( | self | ) |
Helper Methods ##.
Print a thread message 'COMPLETE!'