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

get_tai_time() Get current TAI as an astropy.time.Time.
get_utc_time() Get current UTC as an astropy.time.Time.
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 an Operation Manager 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.
MTMountCsc([config_dir, initial_state, …]) MTMount CSC
ReplyCode Reply codes for messages read from the Operation Manager.
Source Values for the source field of a message.
SubsystemId Subsystem ID numbers.

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.
TimeFieldInfo(name, doc, scale[, default]) Date and time 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.
TimestampFieldInfo() Information for the timestamp field.

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.
ElevationAxisMove(**kwargs) ElevationAxisMove command.
ElevationAxisPower(**kwargs) ElevationAxisPower command.
ElevationAxisResetAlarm(**kwargs) ElevationAxisResetAlarm command.
ElevationAxisStop(**kwargs) ElevationAxisStop command.
ElevationAxisTrack(**kwargs) ElevationAxisTrack command.
MainPowerSupplyPower(**kwargs) MainPowerSupplyPower command.
MirrorCoverLocksMoveAll(**kwargs) MirrorCoverLocksMoveAll command.
MirrorCoverLocksPower(**kwargs) MirrorCoverLocksPower command.
MirrorCoverLocksResetAlarm(**kwargs) MirrorCoverLocksResetAlarm command.
MirrorCoverLocksStop(**kwargs) MirrorCoverLocksStop command.
MirrorCoversClose(**kwargs) MirrorCoversClose command.
MirrorCoversOpen(**kwargs) MirrorCoversOpen 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.

lsst.ts.MTMount.mock Package

Classes

AxisDevice(controller, device_id) Mock axis controller device.
Controller(reply_port, log) Simulate the most basic responses from the 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.