We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a716b0e commit 504c855Copy full SHA for 504c855
control_toolbox/include/control_toolbox/filters.hpp
@@ -41,7 +41,8 @@ namespace filters
41
* Values closer to 0 weight the last smoothed value more heavily */
42
43
template <typename T>
44
-static inline T exponentialSmoothing(const T & current_raw_value, const T & last_smoothed_value, double alpha)
+static inline T exponentialSmoothing(
45
+ const T & current_raw_value, const T & last_smoothed_value, double alpha)
46
{
47
return alpha * current_raw_value + (1 - alpha) * last_smoothed_value;
48
}
0 commit comments