ControllerCell#
- class lsst.ts.m2com.ControllerCell(log: Logger | None = None, is_csc: bool = True, host: str | None = None, port_command: int | None = None, port_telemetry: int | None = None, timeout_connection: float = 10.0)#
Bases:
ControllerCell controller class.
Parameters#
- log
logging.Loggeror None, optional A logger. If None, a logger will be instantiated. (the default is None)
- is_csc
bool, optional Is called by the commandable SAL component (CSC) or not. (the default is True)
- host
stror None, optional Host address. (the default is None)
- port_command
intor None, optional Command port to connect. (the default is None)
- port_telemetry
intor None, optional Telemetry port to connect. (the default is None)
- timeout_connection
float, optional Connection timeout in second. (the default is 10.0)
Attributes#
- host
stror None Host address.
- port_command
intor None Command port to connect.
- port_telemetry
intor None Telemetry port to connect.
- timeout_connection
float Connection timeout in second.
- mock_server
MockServeror None Mock server to support the simulation.
Attributes Summary
Methods Summary
Close the controller and mock server.
Connect the TCP/IP server.
run_mock_server(config_dir, lut_path)Run the mock server to support the simulation mode.
Attributes Documentation
- SLEEP_TIME_CLOSE_MOCK_SERVER = 10#
- TELEMETRY_WAIT_TIMEOUT = 900#
Methods Documentation
- async close_controller_and_mock_server() None#
Close the controller and mock server.
- log