FastLED 3.9.15
Loading...
Searching...
No Matches

◆ update()

template<typename T>
T fl::detail::ExponentialSmootherImpl< T >::update ( T input,
T dt_seconds )
inline

Definition at line 14 of file exponential_smoother_impl.h.

14 {
15 if (mTau <= T(0)) {
16 mY = input; // No smoothing when tau <= 0
17 return mY;
18 }
20 mY = input + (mY - input) * decay;
21 return mY;
22 }
enable_if< is_fixed_point< T >::value, T >::type exp(T x) FL_NOEXCEPT

References fl::exp(), mTau, and mY.

+ Here is the call graph for this function: