lsst.ts.hexrotcomm¶
Python code to communicate with the main telescope camera rotator and hexapod low level controllers (code running in PXI computers).
Using lsst.ts.hexrotcomm¶
Contributing¶
lsst.ts.hexrotcomm
is developed at https://github.com/lsst-ts/ts_hexrotcomm.
You can find Jira issues for this module at labels=ts_hexrotcomm.
Python API reference¶
lsst.ts.hexrotcomm Package¶
Functions¶
close_stream_writer (writer) |
Close an asyncio.StreamWriter and wait for it to finish closing. |
read_into (reader, struct) |
Read binary data from a socket into a ctypes.Structure . |
write_from (writer, *structs) |
Write binary data from one or ctypes.Structure s to a socket. |
Classes¶
BaseCsc (*, name, index, port, sync_pattern, …) |
Base CSC for talking to Moog hexpod or rotator controllers. |
BaseCscTestCase |
A variant of salobj.BaseCscTestCase that captures all but the last controller state in make_csc. |
BaseMockController (log, CommandCode, …[, …]) |
Base class for a mock Moog TCP/IP controller with states. |
Command |
Command for Moog controller. |
CommandTelemetryClient (*, log, config, …) |
Client for a mock Moog TCP/IP controller. |
CommandTelemetryServer (host, log, port, …) |
Serve command and telemetry ports for a low level controller to connect to. |
Header |
Initial part of telemetry or configuration data from a Moog controller. |
OneClientServer (name, host, port, log, …) |
A TCP/IP socket server that serves a single client. |
SetStateParam |
Values for Command.param1 when Command.code = CommandCode.SET_STATE . |
SimpleCommandCode |
An enumeration. |
SimpleConfig |
Configuration of SimpleMockController. |
SimpleCsc ([config_dir, initial_state, …]) |
Simple CSC to talk to SimpleMockController. |
SimpleMockController (log[, host, …]) |
Simple mock controller for unit testing BaseMockController. |
SimpleTelemetry |
Telemetry from SimpleMockController. |