Debounce Filter¶
-
template<typename T, uint32_t DebounceMs>
struct Debounce¶ Filter that debounces changes with a time delay.
This stateful filter waits for a value to remain stable for the specified duration (in milliseconds) before propagating, preventing rapid oscillations.
- Since
v0.1.0
// Example: Debounce with 50ms stability requirement Signal<bool, 10, Debounce<bool, 50>> switch_signal(false);Note
Stateful filter. Uses
millis()for timing.Warning
DebounceMsmust be greater than 0.Type
Tmust supportoperator==.
See Also¶
Temporal Filters - Overview