MockMessageTelemetry¶
- class lsst.ts.m2com.MockMessageTelemetry(writer: asyncio.streams.StreamWriter | None)¶
Bases:
object
Mock message of telemetry to simulate the message from real hardware.
- Parameters:
- writer
asyncio.StreamWriter
or None 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 the message: tangent force error.
write_ilc_data
(data)Write the message: inner-loop controller (ILC) data.
Write the message: telescope mount assembly (TMA) inclinometer angle in degree.
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_power_status_raw
(data)Write the message: raw 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: dict) None ¶
Write the message: axial actuator steps.
- Parameters:
- data
dict
Data of axial actuator steps.
- data
- async write_axial_encoder_positions(data: dict) None ¶
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: dict) None ¶
Write the message: axial force in Newton.
- Parameters:
- data
dict
Data of axial force.
- data
- async write_displacement_sensors(data: dict) None ¶
Write the message: raw measurements from displacement sensors.
- Parameters:
- data
dict
Data of displacement sensors.
- data
- async write_force_balance(data: dict) None ¶
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_force_error_tangent(data: dict) None ¶
Write the message: tangent force error.
- Parameters:
- data
dict
Data of tangent force error.
- data
- async write_ilc_data(data: dict) None ¶
Write the message: inner-loop controller (ILC) data.
- Parameters:
- data
dict
Data of ILC status.
- data
- async write_inclinometer_angle_tma(data: dict) None ¶
Write the message: telescope mount assembly (TMA) inclinometer angle in degree.
- Parameters:
- data
dict
Data of TMA angle.
- data
- async write_net_forces_total(data: dict) None ¶
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: dict) None ¶
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: dict) None ¶
Write the message: M2 position by the actuator positions.
- Parameters:
- data
dict
Data of M2 position.
- data
- async write_position_ims(data: dict) None ¶
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: dict) None ¶
Write the message: power status.
- Parameters:
- data
dict
Data of power status.
- data
- async write_power_status_raw(data: dict) None ¶
Write the message: raw power status.
- Parameters:
- data
dict
Data of raw power status.
- data
- async write_tangent_actuator_steps(data: dict) None ¶
Write the message: tangent actuator steps.
- Parameters:
- data
dict
Data of tangent actuator steps.
- data
- async write_tangent_encoder_positions(data: dict) None ¶
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: dict) None ¶
Write the message: tangent force in Newton.
- Parameters:
- data
dict
Data of axial force.
- data