MockMessageEvent

class lsst.ts.m2com.MockMessageEvent(writer)

Bases: object

Mock message of event to simulate the message from real hardware.

Parameters:
writerasyncio.StreamWriter or None

Writer of the socket.

Attributes:
writerasyncio.StreamWriter or None

Writer of the socket.

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_force_balance_system_status(status)

Write the message: force balance system is on or not.

write_hardpoint_list(actuators)

Write the message: hardpoint list.

write_inclination_telemetry_source(source)

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_warningbool

Cell temperature is high or not.

async write_commandable_by_dds(state)

Write the message: commandable by DDS or not.

Parameters:
statebool

Commandable by DDS or not.

async write_detailed_state(detailed_state)

Write the message: detailed state.

Parameters:
detailed_stateenum DetailedState

M2 detailed state.

async write_digital_input(digital_input)

Write the message: digital input.

Parameters:
digital_inputint

Digital input. The bit value can follow the enum ‘DigitalInput’.

async write_digital_output(digital_output)

Write the message: digital output.

Parameters:
digital_outputint

Digital output. The bit value can follow the enum ‘DigitalOutput’.

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:
statusbool

Force balance system is on or not.

async write_hardpoint_list(actuators)

Write the message: hardpoint list.

Parameters:
actuatorslist

Hardpoint list.

async write_inclination_telemetry_source(source)

Write the message: inclination telemetry source.

Parameters:
sourceenum MTM2.InclinationTelemetrySource

Inclination telemetry source.

async write_interlock(state)

Write the message: interlock.

Parameters:
statebool

Interlock is on or not.

async write_m2_assembly_in_position(in_position)

Write the message: M2 assembly is in position or not.

Parameters:
in_positionbool

M2 assembly is in position or not.

async write_script_execution_status(percentage)

Write the message: script execution status.

Parameters:
percentageint or float

Percentage of the script execution.

async write_summary_state(summary_state)

Write the message: summary state.

Parameters:
summary_stateenum lsst.ts.salobj.State

M2 summary state.

async write_tcp_ip_connected(is_connected)

Write the message: TCP/IP connection is on or not.

Parameters:
is_connectedbool

TCP/IP connection is on or not.

async write_temperature_offset(ring, intake, exhaust)

Write the message: temperature offset in degree C.

Parameters:
ringlist

Offset of ring temperatures.

intakelist

Offset of intake temperatures.

exhaustlist

Offset of exhaust temperatures.