22#define M_IMU_3DOF_USE_GRAVITY_DUR_300MS (1 << 0)
23#define M_IMU_3DOF_USE_GRAVITY_DUR_20MS (1 << 1)
30 M_IMU_3DOF_STATE_START = 0,
31 M_IMU_3DOF_STATE_RUNNING = 1,
40 uint64_t timestamp_ns;
46 float gyro_biased_length;
49 enum m_imu_3dof_state state;
60 uint64_t level_timestamp_ns;
85m_imu_3dof_add_vars(
struct m_imu_3dof *f,
void *root,
const char *prefix);
89 uint64_t timestamp_ns,
void m_imu_3dof_update(struct m_imu_3dof *f, uint64_t timestamp_ns, const struct xrt_vec3 *accel, const struct xrt_vec3 *gyro)
Definition: m_imu_3dof.c:230
Definition: m_space.cpp:87
Definition: m_filter_fifo.c:23
Definition: m_imu_3dof.h:35
struct xrt_quat rot
Orientation.
Definition: m_imu_3dof.h:36
struct xrt_vec3 accel
Acceleration.
Definition: m_imu_3dof.h:42
struct xrt_vec3 gyro
Angular velocity.
Definition: m_imu_3dof.h:41
A quaternion with single floats.
Definition: xrt_defines.h:216
A 3 element vector with single floats.
Definition: xrt_defines.h:271
Common defines and enums for XRT.