mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
a/math: Tidy m_filter_one_euro.[h|c]
This commit is contained in:
parent
534d2e9f66
commit
84ccf3a78e
|
@ -12,15 +12,15 @@
|
||||||
* Based in part on https://github.com/thaytan/OpenHMD/blob/rift-kalman-filter/src/exponential-filter.c
|
* 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 "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
|
static double
|
||||||
calc_smoothing_alpha(double Fc, double dt)
|
calc_smoothing_alpha(double Fc, double dt)
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#define M_EURO_FILTER_HEAD_TRACKING_FCMIN_D 25.0
|
#define M_EURO_FILTER_HEAD_TRACKING_FCMIN_D 25.0
|
||||||
#define M_EURO_FILTER_HEAD_TRACKING_BETA 0.6
|
#define M_EURO_FILTER_HEAD_TRACKING_BETA 0.6
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -246,6 +247,7 @@ m_filter_euro_quat_init(struct m_filter_euro_quat *f, double fc_min, double fc_m
|
||||||
void
|
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);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue