mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +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
|
||||
*/
|
||||
|
||||
#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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue