MockInPosition

class lsst.ts.m2com.MockInPosition(window_size: int, control_frequency: float, threshold_axial: float, threshold_tangent: float)

Bases: object

Mock InPosition class that translates from the “InPosition.lvclass” in ts_mtm2_cell.

Parameters

window_sizeint

Window size in second.

control_frequencyfloat

Control frequency in Hz.

threshold_axialfloat

Threshold of the force error of axial actuator in Newton.

threshold_tangentfloat

Threshold of the force error of tangent actuator in Newton.

Attributes

threshold_squared_axialfloat

Squared threshold of the force error of axial actuator in square Newton.

threshold_squared_tangentfloat

Squared threshold of the force error of tangent actuator in square Newton.

Methods Summary

is_in_position(force_error)

Mirror is in position or not based on the thresholds of actuator force error.

reset()

Reset the internal data.

Methods Documentation

is_in_position(force_error: ndarray[Any, dtype[float64]]) bool

Mirror is in position or not based on the thresholds of actuator force error.

Parameters

force_errornumpy.ndarray

Force error of the 72 active actuators in Newton.

Returns

bool

True if the mirror is in position. Otherwise, False.

reset() None

Reset the internal data.