Monado OpenXR Runtime
m_imu_3dof.h File Reference

A IMU fusion specially made for 3dof devices. More...

#include "xrt/xrt_defines.h"
Include dependency graph for m_imu_3dof.h:

Go to the source code of this file.

Data Structures

struct  m_imu_3dof
 

Macros

#define M_IMU_3DOF_USE_GRAVITY_DUR_300MS   (1 << 0)
 
#define M_IMU_3DOF_USE_GRAVITY_DUR_20MS   (1 << 1)
 

Enumerations

enum  m_imu_3dof_state { M_IMU_3DOF_STATE_START = 0 , M_IMU_3DOF_STATE_RUNNING = 1 }
 

Functions

void m_imu_3dof_init (struct m_imu_3dof *f, int flags)
 
void m_imu_3dof_reset (struct m_imu_3dof *f)
 
void m_imu_3dof_close (struct m_imu_3dof *f)
 
void m_imu_3dof_add_vars (struct m_imu_3dof *f, void *root, const char *prefix)
 
void m_imu_3dof_update (struct m_imu_3dof *f, uint64_t timestamp_ns, const struct xrt_vec3 *accel, const struct xrt_vec3 *gyro)
 

Detailed Description

A IMU fusion specially made for 3dof devices.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ m_imu_3dof_update()

void m_imu_3dof_update ( struct m_imu_3dof f,
uint64_t  timestamp_ns,
const struct xrt_vec3 accel,
const struct xrt_vec3 gyro 
)

Skip the first sample.