Monado OpenXR Runtime
Data Structures | Macros | Enumerations | Functions
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:
This graph shows which files directly or indirectly include this file:

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_close (struct m_imu_3dof *f)
 
void m_imu_3dof_update (struct m_imu_3dof *f, uint64_t timepoint_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

Macro Definition Documentation

◆ M_IMU_3DOF_USE_GRAVITY_DUR_20MS

#define M_IMU_3DOF_USE_GRAVITY_DUR_20MS   (1 << 1)

Referenced by vive_controller_found().

◆ M_IMU_3DOF_USE_GRAVITY_DUR_300MS

#define M_IMU_3DOF_USE_GRAVITY_DUR_300MS   (1 << 0)

Enumeration Type Documentation

◆ m_imu_3dof_state

Enumerator
M_IMU_3DOF_STATE_START 
M_IMU_3DOF_STATE_RUNNING 

Function Documentation

◆ m_imu_3dof_close()

void m_imu_3dof_close ( struct m_imu_3dof f)

◆ m_imu_3dof_init()

void m_imu_3dof_init ( struct m_imu_3dof f,
int  flags 
)

◆ m_imu_3dof_update()

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