hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ccscmds_facade.CcsCmdsFacadeNonLgs Class Reference
Inheritance diagram for ccscmds_facade.CcsCmdsFacadeNonLgs:

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 ##.
 

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
uriURI for the MAL reply request endpoint

◆ __del__()

def ccscmds_facade.CcsCmdsFacadeNonLgs.__del__ (   self)

Member Function Documentation

◆ get_configuration_command()

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.

Parameters

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.

Return

None

◆ preset_command()

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.

Parameters

ra_value float Right Ascension in Radians dec_value float

Declination in Radians
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.

Return

None

◆ preset_ephemeris_command()

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.

Parameters

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.

Return

None

◆ release_control_command()

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.

Parameters

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.

Return

None

◆ request_control_command()

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.

Parameters

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.

Return

None

◆ rous_configuration_command()

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.

Parameters

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.

Return

None

◆ rous_execute_command()

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.

Parameters

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.

Return

None

◆ set_observing_wavelength_command()

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.

Parameters

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.

Return

None

◆ set_offset_set_focal_plane_command()

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.

Parameters

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.

Return

None

◆ set_offset_set_sky_command()

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.

Parameters

ra_value float Right Ascension in arcsec/s dec_value float

Declination in arcsec/s
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.

Return

None

◆ set_reference_aberration_command()

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.

Parameters

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.

Return

None

◆ set_reference_focus_command()

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.

Parameters

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.

Return

None

◆ set_velocity_offset_command()

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.

Parameters

ra_value float Right Ascension in Radians dec_value float

Declination in Radians
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.

Return

None

◆ thread_complete()

def ccscmds_facade.CcsCmdsFacadeNonLgs.thread_complete (   self)

Helper Methods ##.

Print a thread message 'COMPLETE!'


The documentation for this class was generated from the following file: