-
Notifications
You must be signed in to change notification settings - Fork 8
Filters
Emits item if is greater than previous received item
OnRising()
Emits item if is smaller than previous received item
OnFalling()
Emits the moving average of received items
MovingAverage(size_t N)
Emits the median of three latest received items
Median3()
Emits the median of five latest received items
Median5()
Emits a status variable, which varies when the value received goes above or below a certain Threshold
Threshold(T threshold)
Threshold(T threshold, bool initialState)
Threshold(T lowThreshold, T highThreshold)
Threshold(T lowThreshold, T highThreshold, bool initialState)
Emits the low pass filter of the received items
LowPass(const double alpha)
Emits the high pass filter of the received items
HighPass(const double alpha)
Emits the stop band filter of the received items
StopBand(const double alpha1, const double alpha2)
Emits the pass band filter of the received items
PassBand(const double alpha1, const double alpha2)
Ignore items received after a time intervall
Millis version
DebounceMillis(const unsigned long interval)
Micros version
DebounceMicros(const unsigned long interval)
WIP. Emits items received within a time interval
Millis version
WindowMillis(const uint8_t num, const unsigned long interval)
Micros version
WindowMicros(const uint8_t num, const unsigned long interval)
Emits the received item cropped by a lower and upper limit
Limit(T lowerLimit, T upperLimit)
Emits the received item cropped by an upper limit
LimitUpper(T upperLimit)
Emits the received item cropped by a lower limit
LimitLower(T lowerLimit)
Emits the item received scaled
Scale(T input_min, T input_max, T output_min, T output_max)
Emits true if the received item is less or equal than a value
IsLessOrEqual(T value)
Emits true if the received item is less than a value
IsLess(T value)
Emits true if the received item is great or equal than a value
IsGreaterOrEqual(T value)
Emits true if the received item is great than a value
IsGreater(T value)
Emits true if the received item is equal to a value
IsEqual(T value)
Emits true if the received item is not equal to a value
IsNotEqual(T value)
Emits true if the received item is equal zero
IsZero(T value)
Emits true if the received item is not equal zero
IsNotZero(T value)