ConsecutiveValue Filter¶
-
template<typename T, size_t N>
struct ConsecutiveValue¶ Filter that requires N consecutive identical values.
This stateful filter propagates a change only when the same value has been received
Nconsecutive times, providing strong debouncing for stable states.- Since
v0.1.0
// Example: Require 4 consecutive identical readings Signal<bool, 10, ConsecutiveValue<bool, 4>> button(false);Note
Stateful filter. Tracks consecutive count.
Warning
Nmust be greater than 0.Type
Tmust supportoperator==.
See Also¶
Temporal Filters - Overview