Controller Device

This module contains the ska_sat_lmc Controller device prototype.

class SatController(*args, **kwargs)

An implementation of a controller Tango device for SatLMC.

class InitCommand(*args, **kwargs)

A class for SatController’s Init command.

The do() method below is called during SatController’s initialisation.

do(*args, **kwargs)

Initialise the attributes and properties.

Parameters:
  • args (Any) – additional positional arguments; unused here

  • kwargs (Any) – additional keyword arguments; unused here

Return type:

tuple[ResultCode, str]

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

create_component_manager()

Create and return a component manager for this device.

Return type:

ControllerComponentManager

Returns:

a component manager for this device.

health_changed(health)

Call this method whenever the HealthModel’s health state changes.

Responsible for updating the tango side of things i.e. making sure the attribute is up to date, and events are pushed.

Parameters:

health (HealthState) – the new health value

Return type:

None

init_command_objects()

Set up the handler objects for Commands.

Return type:

None

init_device()

Initialise the device.

Return type:

None

main(*args, **kwargs)

Entry point for module.

Parameters:
  • args (str) – positional arguments

  • kwargs (str) – named arguments

Return type:

int

Returns:

exit code