52 units::second_t m_debounceTime;
56 units::second_t m_prevTime;
60 bool HasElapsed()
const;
#define WPILIB_DLLEXPORT
Definition SymbolExports.h:36
A simple debounce filter for boolean streams.
Definition Debouncer.h:18
Debouncer(units::second_t debounceTime, DebounceType type=DebounceType::kRising)
Creates a new Debouncer.
DebounceType
Type of debouncing to perform.
Definition Debouncer.h:23
@ kFalling
Falling edge.
Definition Debouncer.h:27
@ kRising
Rising edge.
Definition Debouncer.h:25
bool Calculate(bool input)
Applies the debouncer to the input stream.
@ kBoth
Both rising and falling edges configuration.