11 hysteresis(
double _low_threshold,
double _high_threshold,
bool _initial_state =
false){
12 low_threshold = _low_threshold;
13 high_threshold = _high_threshold;
14 state = _initial_state;
18 if(value >= high_threshold){
20 }
else if(value <= low_threshold){
36 return termination - start;
bool update_state(double value)
hysteresis(double _low_threshold, double _high_threshold, bool _initial_state=false)
timer_counter(double _start)
double get_count_duration(double termination)