ska_dishln_pointing_device.dishln_pointing_device module

A DishLeaf Node pointing device.

class ska_dishln_pointing_device.dishln_pointing_device.DishPointingDevice(*args: Any, **kwargs: Any)

Bases: TMCBaseLeafDevice

This class is responsible for doing the pointing calculations, forward transform and generating the programTrackTable

Device Properties:

Device Attributes:

CommandExecuted:

Stores command executed on the device.

MidPointingDevice:

Stores Dish leaf node pointing device name.

ChangePointingData(argin: Optional[str] = None) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This command instructs to change current pointing/offset.

Returns:

ResultCode and message

Return type:

Tuple[List[ResultCode], List[str]]

GenerateProgramTrackTable() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This command instructs dish pointing device to start generating program track table.

Returns:

ResultCode and message

Return type:

Tuple[List[ResultCode], List[str]]

class InitCommand(*args: Any, **kwargs: Any)

Bases: InitCommand

A class for the DishPointingDevice’s init_device() command.

do() Tuple[ska_tango_base.commands.ResultCode, str]

Change device state to INIT.

MidPointingDevice() str

This attribute is used for storing the FQDN of Dish leaf node pointing device. :return: str

StopProgramTrackTable() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This command instructs dish pointing device to stop generation of program track table.

Returns:

ResultCode and message

Return type:

Tuple[List[ResultCode], List[str]]

create_component_manager() DishlnPointingDataComponentManager

Creates an instance of DishlnPointingDataComponentManager :return: component manager instance :rtype: DishlnPointingDataComponentManager

init_command_objects() None

Initializes the command handlers for commands supported by this device.

init_device() None
pointingProgramTrackTable() str

This attribute is used for storing calculated tracktable. :return: str

programTrackTableError() str

This attribute is used for storing error occurred during program track table calculation :return: str

targetData(target_data: str) None

This method writes the attribute data in component manager.

Parameters:

target_data (str) – _description_

update_pointing_program_track_table_callback(pointing_program_track_table: list) None

This method helps in pushing event of program track table change.

Parameters:

pointing_program_track_table (dict) – data of program track table.

update_program_track_table_error_callback(program_track_table_error: str) None

This method helps in pushing event of program track table error. :param program_track_table_error: program track table error.

ska_dishln_pointing_device.dishln_pointing_device.main(args=None, **kwargs)

Runs the DishPointingDevice Tango device. :param args: Arguments internal to TANGO

Parameters:

kwargs – Arguments internal to TANGO

Returns:

integer. Exit code of the run method.

Attributes in DishPointingDevice

Attribute Name

O/P Data Type

access/AttrWriteType

Description

MidPointingDevice

String

READ

This attribute gives dish pointing device fqdn

healthState

HealthState

READ

This attribute gives HealthState of dish pointing device

TargetData

String

READ_WRITE

This attribute provides target data.

pointingProgramTrackTable | String

READ

This attribute provides program track table.

Properties in Dish Pointing Device

Property Name

Data Type

Description

ElevationMaxLimit

DevFloat

Maximum elevation allowed for observation

ElevationMinLimit

DevFloat

Minimum elevation allowed for observation

TrackTableEntries

DevShort

Number of entries in programTrackTable

PointingCalculationPeriod

DevShort

Time difference between two consecutive entries of programTrackTable in milliseconds

TrackTableInAdvance

DevShort

programTrackTable in advance in seconds

TrackTableUpdateRate

DevFloat

The rate at which a tracktable is provided. It is one tracktable per specified number of seconds.

AzimuthMinLimit

DevFloat

Minimum value of Azimuth to which dish can point

AzimuthMaxLimit

DevFloat

Maximum value of Azimuth to which dish can point