diff options
-rw-r--r-- | filter-kalman/kalman.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter-kalman/kalman.cpp b/filter-kalman/kalman.cpp index 660bc0cc..7e2050b0 100644 --- a/filter-kalman/kalman.cpp +++ b/filter-kalman/kalman.cpp @@ -5,7 +5,6 @@ * copyright notice and this permission notice appear in all copies. */ #include "kalman.h" -#include "opentrack/plugin-api.hpp" #include <QDebug> #include <cmath> @@ -95,7 +94,7 @@ PoseVector DeadzoneFilter::filter(const PoseVector &input) if (dz > 0.) { const double delta = input[i] - last_output[i]; - const double f = pow(abs(delta) / dz, settings::deadzone_exponent); + const double f = std::pow(std::fabs(delta) / dz, settings::deadzone_exponent); const double response = f / (f + 1.) * delta; out[i] = last_output[i] + response; } |