lsst.ts.MTMount

A CSC that controls the Simonyi Survey Telescope main axes and related components.

It communicates with a low level controller written by Tekniker. For more information see Interactions with Tekniker’s software.

Contributing

lsst.ts.MTMount is developed at https://github.com/lsst-ts/ts_MTMount. You can find Jira issues for this module using labels=ts_MTMount.

Python API reference

lsst.ts.MTMount Package

Functions

wrap_parameter_doc(text) Wrap a parameter description appropriately for a doc string.

Classes

ClientServerPair(name, client_host, …[, …]) A TCP/IP client and server combined.
CommandCode Command codes for Command.command_code.
CommandFutures() asyncio futures to track the progress of a low-level controller command.
Communicator(name, client_host, client_port, …) Read and write BaseMessages using Tekniker’s communication protocol.
CscErrorCode An enumeration.
DeviceId Devices that have POWER and RESET_ALARM commands.
EnabledState Status of enabling/disabling subsystems.
Limits(min_position, max_position, …) Motion limits for an axis controller.
MTMountCommander(enable)
MTMountCsc([config_dir, initial_state, …]) MTMount CSC
ReplyCode Reply codes for messages read from the low-level controller.
Source Values for the source field of a message.
SubsystemId Subsystem ID numbers.

Class Inheritance Diagram

Inheritance diagram of lsst.ts.MTMount.client_server_pair.ClientServerPair, lsst.ts.MTMount.enums.CommandCode, lsst.ts.MTMount.command_futures.CommandFutures, lsst.ts.MTMount.communicator.Communicator, lsst.ts.MTMount.enums.CscErrorCode, lsst.ts.MTMount.enums.DeviceId, lsst.ts.MTMount.enums.EnabledState, lsst.ts.MTMount.limits.Limits, lsst.ts.MTMount.mtmount_commander.MTMountCommander, lsst.ts.MTMount.mtmount_csc.MTMountCsc, lsst.ts.MTMount.enums.ReplyCode, lsst.ts.MTMount.enums.Source, lsst.ts.MTMount.enums.SubsystemId

lsst.ts.MTMount.field_info Module

Classes

BaseFieldInfo(name, doc, dtype[, default]) Information about one field of a message.
BoolFieldInfo(name, doc[, default]) A bool field with str representation “0”/”1”.
EnumFieldInfo(name, doc, dtype[, default]) An enum field.
FixedEnumFieldInfo(name, default) Information for an enum field that must be a given enum value.
FloatFieldInfo(name, doc[, default]) A float field.
IntFieldInfo(name, doc[, default, …]) An int field.
StrFieldInfo(name, doc[, default]) A str field.
TimestampFieldInfo() UTC timestamp field.
CommandCodeFieldInfo(default) Information for the command_code field of command.
ReplyCodeFieldInfo(default) Information for the command_code field of reply.
SourceFieldInfo(what) Information for the source field.

Class Inheritance Diagram

Inheritance diagram of lsst.ts.MTMount.field_info.BaseFieldInfo, lsst.ts.MTMount.field_info.BoolFieldInfo, lsst.ts.MTMount.field_info.EnumFieldInfo, lsst.ts.MTMount.field_info.FixedEnumFieldInfo, lsst.ts.MTMount.field_info.FloatFieldInfo, lsst.ts.MTMount.field_info.IntFieldInfo, lsst.ts.MTMount.field_info.StrFieldInfo, lsst.ts.MTMount.field_info.TimestampFieldInfo, lsst.ts.MTMount.field_info.CommandCodeFieldInfo, lsst.ts.MTMount.field_info.ReplyCodeFieldInfo, lsst.ts.MTMount.field_info.SourceFieldInfo

lsst.ts.MTMount.commands Module

Functions

parse_command(fields) Return a Command from a bytes string.

Classes

Command(**kwargs) Base class for commands.
AzimuthAxisDriveEnable(**kwargs) AzimuthAxisDriveEnable command.
AzimuthAxisDriveReset(**kwargs) AzimuthAxisDriveReset command.
AzimuthAxisEnableTracking(**kwargs) AzimuthAxisEnableTracking command.
AzimuthAxisHome(**kwargs) AzimuthAxisHome command.
AzimuthAxisMove(**kwargs) AzimuthAxisMove command.
AzimuthAxisPower(**kwargs) AzimuthAxisPower command.
AzimuthAxisResetAlarm(**kwargs) AzimuthAxisResetAlarm command.
AzimuthAxisStop(**kwargs) AzimuthAxisStop command.
AzimuthAxisTrack(**kwargs) AzimuthAxisTrack command.
BothAxesMove(**kwargs) BothAxesMove command.
BothAxesStop(**kwargs) BothAxesStop command.
BothAxesTrack(**kwargs) BothAxesTrack command.
CameraCableWrapDriveEnable(**kwargs) CameraCableWrapDriveEnable command.
CameraCableWrapDriveReset(**kwargs) CameraCableWrapDriveReset command.
CameraCableWrapEnableTracking(**kwargs) CameraCableWrapEnableTracking command.
CameraCableWrapMove(**kwargs) CameraCableWrapMove command.
CameraCableWrapPower(**kwargs) CameraCableWrapPower command.
CameraCableWrapResetAlarm(**kwargs) CameraCableWrapResetAlarm command.
CameraCableWrapStop(**kwargs) CameraCableWrapStop command.
CameraCableWrapTrack(**kwargs) CameraCableWrapTrack command.
Disable(**kwargs) Disable command.
Enable(**kwargs) Enable command.
ElevationAxisDriveEnable(**kwargs) ElevationAxisDriveEnable command.
ElevationAxisDriveReset(**kwargs) ElevationAxisDriveReset command.
ElevationAxisEnableTracking(**kwargs) ElevationAxisEnableTracking command.
ElevationAxisHome(**kwargs) ElevationAxisHome command.
ElevationAxisMove(**kwargs) ElevationAxisMove command.
ElevationAxisPower(**kwargs) ElevationAxisPower command.
ElevationAxisResetAlarm(**kwargs) ElevationAxisResetAlarm command.
ElevationAxisStop(**kwargs) ElevationAxisStop command.
ElevationAxisTrack(**kwargs) ElevationAxisTrack command.
MainPowerSupplyPower(**kwargs) MainPowerSupplyPower command.
MainPowerSupplyResetAlarm(**kwargs) MainPowerSupplyResetAlarm command.
MirrorCoverLocksMoveAll(**kwargs) MirrorCoverLocksMoveAll command.
MirrorCoverLocksPower(**kwargs) MirrorCoverLocksPower command.
MirrorCoverLocksResetAlarm(**kwargs) MirrorCoverLocksResetAlarm command.
MirrorCoverLocksStop(**kwargs) MirrorCoverLocksStop command.
MirrorCoversDeploy(**kwargs) MirrorCoversDeploy command.
MirrorCoversRetract(**kwargs) MirrorCoversRetract command.
MirrorCoversPower(**kwargs) MirrorCoversPower command.
MirrorCoversResetAlarm(**kwargs) MirrorCoversResetAlarm command.
MirrorCoversStop(**kwargs) MirrorCoversStop command.
OilSupplySystemPower(**kwargs) OilSupplySystemPower command.
OilSupplySystemPowerCooling(**kwargs) OilSupplySystemPowerCooling command.
OilSupplySystemPowerMainPump(**kwargs) OilSupplySystemPowerMainPump command.
OilSupplySystemPowerOil(**kwargs) OilSupplySystemPowerOil command.
OilSupplySystemResetAlarm(**kwargs) OilSupplySystemResetAlarm command.
TopEndChillerPower(**kwargs) TopEndChillerPower command.
TopEndChillerResetAlarm(**kwargs) TopEndChillerResetAlarm command.
TopEndChillerTrackAmbient(**kwargs) TopEndChillerTrackAmbient command.

lsst.ts.MTMount.replies Module

Functions

parse_reply(fields) Parse a set of strings as a reply.

Classes

Reply(**kwargs) Base class for replies.
AckReply(**kwargs) Ack command.
NoAckReply(**kwargs) NoAck command.
DoneReply(**kwargs) Done command.
WarningReply(**kwargs) Warning command.
ErrorReply(**kwargs) Error command.
OnStateInfoReply(**kwargs) OnStateInfo command.
InPositionReply(**kwargs) InPosition command.

Class Inheritance Diagram

Inheritance diagram of lsst.ts.MTMount.replies.Reply, lsst.ts.MTMount.replies.AckReply, lsst.ts.MTMount.replies.NoAckReply, lsst.ts.MTMount.replies.DoneReply, lsst.ts.MTMount.replies.WarningReply, lsst.ts.MTMount.replies.ErrorReply, lsst.ts.MTMount.replies.OnStateInfoReply, lsst.ts.MTMount.replies.InPositionReply

lsst.ts.MTMount.mock Package

Classes

AxisDevice(controller, device_id) Mock axis controller device.
Controller(command_port, log[, reconnect]) Simulate the most basic responses from the low-level controller (Operation Manager).
MainPowerSupplyDevice(controller) Main power supply.
MirrorCoverLocksDevice(controller) Mirror cover locks.
MirrorCoversDevice(controller) Mirror covers.
OilSupplySystemDevice(controller) Oil supply system supply.
TopEndChillerDevice(controller) Top end chiller.

Class Inheritance Diagram

Inheritance diagram of lsst.ts.MTMount.mock.axis_device.AxisDevice, lsst.ts.MTMount.mock.controller.Controller, lsst.ts.MTMount.mock.main_power_supply_device.MainPowerSupplyDevice, lsst.ts.MTMount.mock.mirror_cover_locks_device.MirrorCoverLocksDevice, lsst.ts.MTMount.mock.mirror_covers_device.MirrorCoversDevice, lsst.ts.MTMount.mock.oil_supply_system_device.OilSupplySystemDevice, lsst.ts.MTMount.mock.top_end_chiller_device.TopEndChillerDevice

Version History