18#ifndef SBL_CONTROL_INPUT_GATE_INPUT_HPP_
19#define SBL_CONTROL_INPUT_GATE_INPUT_HPP_
45 : thresh_high_(config.threshold_high),
46 thresh_low_(config.threshold_low),
63 if (!state_ && raw >= thresh_high_) {
65 }
else if (state_ && raw < thresh_low_) {
71 }
else if (!state_ && was) {
77 bool gate()
const {
return state_; }
109 uint16_t thresh_high_;
110 uint16_t thresh_low_;