The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/math: Tidy m_filter_one_euro.[h|c]

+6 -4
+4 -4
src/xrt/auxiliary/math/m_filter_one_euro.c
··· 12 12 * Based in part on https://github.com/thaytan/OpenHMD/blob/rift-kalman-filter/src/exponential-filter.c 13 13 */ 14 14 15 - 16 - #include "m_filter_one_euro.h" 17 - 18 15 #include "math/m_mathinclude.h" 19 - 20 16 #include "math/m_vec2.h" 21 17 #include "math/m_vec3.h" 18 + 22 19 #include "util/u_time.h" 23 20 #include "util/u_misc.h" 21 + 22 + #include "m_filter_one_euro.h" 23 + 24 24 25 25 static double 26 26 calc_smoothing_alpha(double Fc, double dt)
+2
src/xrt/auxiliary/math/m_filter_one_euro.h
··· 28 28 #define M_EURO_FILTER_HEAD_TRACKING_FCMIN_D 25.0 29 29 #define M_EURO_FILTER_HEAD_TRACKING_BETA 0.6 30 30 31 + 31 32 #ifdef __cplusplus 32 33 extern "C" { 33 34 #endif ··· 245 246 */ 246 247 void 247 248 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); 249 + 248 250 249 251 #ifdef __cplusplus 250 252 }