ska_dishln_pointing_device.dishln_pointing_device module

Link to the TMC User documentation is here <https://confluence.skatelescope.org/display/UD/TMC+User+Documentation>_.

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]]

InitCommand = None
MidPointingDevice() str

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

Returns:

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

Returns:

component manager instance

Return type:

DishlnPointingDataComponentManager

delete_device() None

This method is used to perform cleanup when the device is deleted.

init_device() None
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.

Parameters:

program_track_table_error – program track table error.

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

Runs the DishPointingDevice Tango device.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

Exit code of the run method.

Return type:

Integer

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

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

SchedularQueuePreEntries

DevLong

ProgramTrackTable entries queued ahead in the track thread scheduler, primarily for developer-side debugging.