22 #define M_IMU_3DOF_USE_GRAVITY_DUR_300MS (1 << 0) 23 #define M_IMU_3DOF_USE_GRAVITY_DUR_20MS (1 << 1) float error_angle
Definition: m_imu_3dof.h:59
struct m_ff_vec3_f32 * word_accel_ff
Definition: m_imu_3dof.h:51
m_imu_3dof_state
Definition: m_imu_3dof.h:28
A 3 element vector with single floats.
Definition: xrt_defines.h:133
struct m_ff_vec3_f32 * gyro_ff
Definition: m_imu_3dof.h:52
struct m_imu_3dof::@0 last
void m_imu_3dof_close(struct m_imu_3dof *f)
Definition: m_imu_3dof.c:38
Definition: m_filter_fifo.c:16
A quaternion with single floats.
Definition: xrt_defines.h:99
struct xrt_vec3 gyro
Angular velocity.
Definition: m_imu_3dof.h:41
struct xrt_quat rot
Orientation.
Definition: m_imu_3dof.h:36
Definition: m_imu_3dof.h:30
int flags
Definition: m_imu_3dof.h:48
Common defines and enums for XRT.
int64_t timepoint_ns
Integer timestamp type.
Definition: u_time.h:34
enum m_imu_3dof_state state
Definition: m_imu_3dof.h:46
Definition: m_imu_3dof.h:31
struct m_imu_3dof::@1 grav
uint64_t level_timepoint_ns
Definition: m_imu_3dof.h:57
uint64_t timepoint_ns
Definition: m_imu_3dof.h:40
struct xrt_vec3 error_axis
Definition: m_imu_3dof.h:58
struct xrt_vec3 accel
Acceleration.
Definition: m_imu_3dof.h:42
float delta_ms
Definition: m_imu_3dof.h:43
void m_imu_3dof_init(struct m_imu_3dof *f, int flags)
Definition: m_imu_3dof.c:26
Definition: m_imu_3dof.h:34
void m_imu_3dof_update(struct m_imu_3dof *f, uint64_t timepoint_ns, const struct xrt_vec3 *accel, const struct xrt_vec3 *gyro)
Definition: m_imu_3dof.c:147