MockMessageTelemetry¶
- class lsst.ts.m2com.MockMessageTelemetry(writer)¶
Bases:
object
Mock message of telemetry to simulate the message from real hardware.
- Parameters:
- writer
asyncio.StreamWriter
Writer of the socket.
- writer
- Attributes:
- writer
asyncio.StreamWriter
Writer of the socket.
- writer
Methods Summary
Write the message: axial actuator steps.
Write the message: axial actuator encoder positions in micron.
write_axial_force
(data)Write the message: axial force in Newton.
Write the message: raw measurements from displacement sensors.
write_force_balance
(data)Write the message: net forces and moments as commanded by the force balance system.
write_ilc_data
(data)Write the message: inner-loop controller (ILC) data.
write_net_forces_total
(data)Write the message: total actuator net forces in Newton.
write_net_moments_total
(data)Write the message: total actuator net moments of force in Newton * meter.
write_position
(data)Write the message: M2 position by the actuator positions.
write_position_ims
(data)Write the message: M2 position by the independent measurement system (IMS).
write_power_status
(data)Write the message: power status.
Write the message: tangent actuator steps.
Write the message: tangent actuator encoder positions in micron.
write_tangent_force
(data)Write the message: tangent force in Newton.
write_temperature
(data)Write the message: cell temperature in degree C.
write_zenith_angle
(data)Write the message: zenith angle in degree.
Methods Documentation
- async write_axial_actuator_steps(data)¶
Write the message: axial actuator steps.
- Parameters:
- data
dict
Data of axial actuator steps.
- data
- async write_axial_encoder_positions(data)¶
Write the message: axial actuator encoder positions in micron.
- Parameters:
- data
dict
Data of axial actuator encoder position in millimeter.
- data
- async write_axial_force(data)¶
Write the message: axial force in Newton.
- Parameters:
- data
dict
Data of axial force.
- data
- async write_displacement_sensors(data)¶
Write the message: raw measurements from displacement sensors.
- Parameters:
- data
dict
Data of displacement sensors.
- data
- async write_force_balance(data)¶
Write the message: net forces and moments as commanded by the force balance system.
- Parameters:
- data
dict
Data of force balance system.
- data
- async write_ilc_data(data)¶
Write the message: inner-loop controller (ILC) data.
- Parameters:
- data
dict
Data of ILC status.
- data
- async write_net_forces_total(data)¶
Write the message: total actuator net forces in Newton.
- Parameters:
- data
dict
Data of total actuator net forces.
- data
- async write_net_moments_total(data)¶
Write the message: total actuator net moments of force in Newton * meter.
- Parameters:
- data
dict
Data of total actuator net moments of force.
- data
- async write_position(data)¶
Write the message: M2 position by the actuator positions.
- Parameters:
- data
dict
Data of M2 position.
- data
- async write_position_ims(data)¶
Write the message: M2 position by the independent measurement system (IMS).
- Parameters:
- data
dict
Data of M2 position by IMS.
- data
- async write_power_status(data)¶
Write the message: power status.
- Parameters:
- data
dict
Data of power status.
- data
- async write_tangent_actuator_steps(data)¶
Write the message: tangent actuator steps.
- Parameters:
- data
dict
Data of tangent actuator steps.
- data
- async write_tangent_encoder_positions(data)¶
Write the message: tangent actuator encoder positions in micron.
- Parameters:
- data
dict
Data of tangent actuator encoder position in millimeter.
- data
- async write_tangent_force(data)¶
Write the message: tangent force in Newton.
- Parameters:
- data
dict
Data of axial force.
- data