MockInPosition#
- class lsst.ts.m2com.MockInPosition(window_size: int, control_frequency: float, threshold_axial: float, threshold_tangent: float)#
Bases:
objectMock InPosition class that translates from the “InPosition.lvclass” in ts_mtm2_cell.
Parameters#
- window_size
int Window size in second.
- control_frequency
float Control frequency in Hz.
- threshold_axial
float Threshold of the force error of axial actuator in Newton.
- threshold_tangent
float Threshold of the force error of tangent actuator in Newton.
Attributes#
- threshold_squared_axial
float Squared threshold of the force error of axial actuator in square Newton.
- threshold_squared_tangent
float 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[tuple[Any, ...], dtype[float64]]) bool#
Mirror is in position or not based on the thresholds of actuator force error.
Parameters#
- force_error
numpy.ndarray Force error of the 72 active actuators in Newton.
Returns#
boolTrue if the mirror is in position. Otherwise, False.
- force_error
- reset() None#
Reset the internal data.
- window_size