MockDeadbandControl

class lsst.ts.m2com.MockDeadbandControl(threshold_lower: float, threshold_upper: float)

Bases: object

Mock deadband control to select the force error of hardpoints.

Notes

Force error values are latched when the largest force error falls below the low threshold and the output remains constant until the largest force error exceeds the high threshold.

Parameters

threshold_lowerfloat

Lower threshold in Newton.

threshold_upperfloat

Upper threshold in Newton.

Methods Summary

reset([reset_all])

Reset the deadband.

select(hardpoint_error[, is_enabled])

Select the hardpoint error.

Methods Documentation

reset(reset_all: bool = False) None

Reset the deadband.

Parameters

reset_allbool, optional

Reset all of the internal data or not. (the default is False)

select(hardpoint_error: ndarray[Any, dtype[float64]], is_enabled: bool = True) ndarray[Any, dtype[float64]]

Select the hardpoint error.

Parameters

hardpoint_errornumpy.ndarray

Force error of the hardpoints in Newton.

is_enabledbool, optional

Enable the deadzone or not. (the default is True)

Returns

numpy.ndarray

Selected hardpoint error.