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

This commit is contained in:
Jakob Bornecrantz 2023-03-01 19:34:50 +00:00
parent 534d2e9f66
commit 84ccf3a78e
2 changed files with 8 additions and 6 deletions

View file

@ -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)

View file

@ -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