MockMessageEvent¶
- class lsst.ts.m2com.MockMessageEvent(writer)¶
Bases:
object
Mock message of event to simulate the message from real hardware.
- Parameters:
- writer
asyncio.StreamWriter
or None Writer of the socket.
- writer
- Attributes:
- writer
asyncio.StreamWriter
or None Writer of the socket.
- writer
Methods Summary
write_cell_temperature_high_warning
(hi_warning)Write the message: cell temperature is high or not.
write_commandable_by_dds
(state)Write the message: commandable by DDS or not.
write_detailed_state
(detailed_state)Write the message: detailed state.
write_digital_input
(digital_input)Write the message: digital input.
write_digital_output
(digital_output)Write the message: digital output.
write_error_code
(error_code)Write the message: error code.
Write the message: force balance system is on or not.
write_hardpoint_list
(actuators)Write the message: hardpoint list.
Write the message: inclination telemetry source.
write_interlock
(state)Write the message: interlock.
write_m2_assembly_in_position
(in_position)Write the message: M2 assembly is in position or not.
write_script_execution_status
(percentage)Write the message: script execution status.
write_summary_state
(summary_state)Write the message: summary state.
write_tcp_ip_connected
(is_connected)Write the message: TCP/IP connection is on or not.
write_temperature_offset
(ring, intake, exhaust)Write the message: temperature offset in degree C.
Methods Documentation
- async write_cell_temperature_high_warning(hi_warning)¶
Write the message: cell temperature is high or not.
- Parameters:
- hi_warning
bool
Cell temperature is high or not.
- hi_warning
- async write_commandable_by_dds(state)¶
Write the message: commandable by DDS or not.
- Parameters:
- state
bool
Commandable by DDS or not.
- state
- async write_detailed_state(detailed_state)¶
Write the message: detailed state.
- Parameters:
- detailed_stateenum
DetailedState
M2 detailed state.
- detailed_stateenum
- async write_digital_input(digital_input)¶
Write the message: digital input.
- Parameters:
- digital_input
int
Digital input. The bit value can follow the enum ‘DigitalInput’.
- digital_input
- async write_digital_output(digital_output)¶
Write the message: digital output.
- Parameters:
- digital_output
int
Digital output. The bit value can follow the enum ‘DigitalOutput’.
- digital_output
- async write_error_code(error_code)¶
Write the message: error code.
- Parameters:
- error_codeint
Error code.
- async write_force_balance_system_status(status)¶
Write the message: force balance system is on or not.
- Parameters:
- status
bool
Force balance system is on or not.
- status
- async write_hardpoint_list(actuators)¶
Write the message: hardpoint list.
- Parameters:
- actuators
list
Hardpoint list.
- actuators
- async write_inclination_telemetry_source(source)¶
Write the message: inclination telemetry source.
- Parameters:
- sourceenum
MTM2.InclinationTelemetrySource
Inclination telemetry source.
- sourceenum
- async write_interlock(state)¶
Write the message: interlock.
- Parameters:
- state
bool
Interlock is on or not.
- state
- async write_m2_assembly_in_position(in_position)¶
Write the message: M2 assembly is in position or not.
- Parameters:
- in_position
bool
M2 assembly is in position or not.
- in_position
- async write_script_execution_status(percentage)¶
Write the message: script execution status.
- async write_summary_state(summary_state)¶
Write the message: summary state.
- Parameters:
- summary_stateenum
lsst.ts.salobj.State
M2 summary state.
- summary_stateenum