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_lower
float
Lower threshold in Newton.
- threshold_upper
float
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_all
bool
, optional Reset all of the internal data or not. (the default is False)
- reset_all
- select(hardpoint_error: ndarray[Any, dtype[float64]], is_enabled: bool = True) ndarray[Any, dtype[float64]] ¶
Select the hardpoint error.
Parameters¶
- hardpoint_error
numpy.ndarray
Force error of the hardpoints in Newton.
- is_enabled
bool
, optional Enable the deadzone or not. (the default is True)
Returns¶
numpy.ndarray
Selected hardpoint error.
- hardpoint_error
- threshold_lower