9 #ifndef hifi_Controllers_Filters_Exponential_Smoothing_h
10 #define hifi_Controllers_Filters_Exponential_Smoothing_h
12 #include "../Filter.h"
14 namespace controller {
16 class ExponentialSmoothingFilter :
public Filter {
17 REGISTER_FILTER_CLASS(ExponentialSmoothingFilter);
20 ExponentialSmoothingFilter() {}
21 ExponentialSmoothingFilter(
float rotationConstant,
float translationConstant) :
22 _translationConstant(translationConstant), _rotationConstant(rotationConstant) {}
24 AxisValue apply(AxisValue value)
const override {
return value; }
25 Pose apply(Pose value)
const override;
26 bool parseParameters(
const QJsonValue& parameters)
override;
34 float _translationConstant { 0.375f };
35 float _rotationConstant { 0.375f };
37 mutable Pose _prevSensorValue { Pose() };