void m_imu_pre_filter_data(struct m_imu_pre_filter *imu, const struct xrt_vec3_i32 *accel, const struct xrt_vec3_i32 *gyro, struct xrt_vec3 *out_accel, struct xrt_vec3 *out_gyro)
Pre-filters the values, taking them from ticks into float values.
Definition: m_imu_pre.c:61
void m_imu_pre_filter_set_switch_x_and_y(struct m_imu_pre_filter *imu)
Sets the transformation to flip X and Y axis.
Definition: m_imu_pre.c:47
void m_imu_pre_filter_init(struct m_imu_pre_filter *imu, float ticks_to_float_accel, float ticks_to_float_gyro)
A simple init function that takes the two ticks_to_float values, all other values are set to identity...
Definition: m_imu_pre.c:15
This is a common IMU pre-filter which takes raw 'ticks' from a 3 axis IMU measurement and converts it...
Definition: m_imu_pre.h:32
struct xrt_vec3 gain
Gain for the imu part.
Definition: m_imu_pre.h:37
float ticks_to_float
Going from IMU 'ticks' to a floating value.
Definition: m_imu_pre.h:39
struct xrt_vec3 bias
Bias for the imu part.
Definition: m_imu_pre.h:34
This is a common IMU pre-filter which takes raw 'ticks' from an IMU measurement and converts it into ...
Definition: m_imu_pre.h:48
struct xrt_matrix_3x3 transform
A transform on how to flip axis and rotate the IMU values into device space.
Definition: m_imu_pre.h:56
A tightly packed 3x3 matrix of floats.
Definition: xrt_defines.h:533
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:336
A 3 element vector with single floats.
Definition: xrt_defines.h:271
Common defines and enums for XRT.