A simple hysteresis filter for giving a bool output for a threshold.
Definition hysteresis_filter.h:15
HysteresisFilter(T deactivateThreshold, T activateThreshold)
Construct a new Hysteresis Filter object.
Definition hysteresis_filter.h:25
const T m_activateThreshold
Threshold above which output becomes true.
Definition hysteresis_filter.h:48
HysteresisFilter()=delete
const T m_deactivateThreshold
Threshold below which output becomes false.
Definition hysteresis_filter.h:49
bool operator()(T newValue)
Gets new status after applying hysteresis.
Definition hysteresis_filter.h:34
bool m_currentState
Latest state after applying hysteresis.
Definition hysteresis_filter.h:50
Definition swap_controllers_command.h:12