From 84ccf3a78ead2fb00cd999e4c16c88b27ae4b23a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 1 Mar 2023 19:34:50 +0000 Subject: [PATCH] a/math: Tidy m_filter_one_euro.[h|c] --- src/xrt/auxiliary/math/m_filter_one_euro.c | 12 ++++++------ src/xrt/auxiliary/math/m_filter_one_euro.h | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/xrt/auxiliary/math/m_filter_one_euro.c b/src/xrt/auxiliary/math/m_filter_one_euro.c index 9c05f2693..f78c42b2e 100644 --- a/src/xrt/auxiliary/math/m_filter_one_euro.c +++ b/src/xrt/auxiliary/math/m_filter_one_euro.c @@ -12,15 +12,15 @@ * Based in part on https://github.com/thaytan/OpenHMD/blob/rift-kalman-filter/src/exponential-filter.c */ +#include "math/m_mathinclude.h" +#include "math/m_vec2.h" +#include "math/m_vec3.h" + +#include "util/u_time.h" +#include "util/u_misc.h" #include "m_filter_one_euro.h" -#include "math/m_mathinclude.h" - -#include "math/m_vec2.h" -#include "math/m_vec3.h" -#include "util/u_time.h" -#include "util/u_misc.h" static double calc_smoothing_alpha(double Fc, double dt) diff --git a/src/xrt/auxiliary/math/m_filter_one_euro.h b/src/xrt/auxiliary/math/m_filter_one_euro.h index 5bd859ee2..d99476604 100644 --- a/src/xrt/auxiliary/math/m_filter_one_euro.h +++ b/src/xrt/auxiliary/math/m_filter_one_euro.h @@ -28,6 +28,7 @@ #define M_EURO_FILTER_HEAD_TRACKING_FCMIN_D 25.0 #define M_EURO_FILTER_HEAD_TRACKING_BETA 0.6 + #ifdef __cplusplus extern "C" { #endif @@ -246,6 +247,7 @@ m_filter_euro_quat_init(struct m_filter_euro_quat *f, double fc_min, double fc_m void m_filter_euro_quat_run(struct m_filter_euro_quat *f, uint64_t ts, const struct xrt_quat *in_y, struct xrt_quat *out_y); + #ifdef __cplusplus } #endif