64 float ticks_to_float_accel,
65 float ticks_to_float_gyro);
A 3 element vector with single floats.
Definition: xrt_defines.h:131
This is a common IMU pre-filter which takes raw 'ticks' from an IMU measurement and converts it into ...
Definition: m_imu_pre.h:46
struct xrt_vec3 bias
Bias for the imu part.
Definition: m_imu_pre.h:33
A tightly packed 3x3 matrix of floats.
Definition: xrt_defines.h:266
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:63
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 just takes the two ticks_to_float values, all other values are set to ide...
Definition: m_imu_pre.c:15
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:143
Common defines and enums for XRT.
float ticks_to_float
Going from IMU 'ticks' to a floating value.
Definition: m_imu_pre.h:38
struct xrt_vec3 gain
Gain for the imu part.
Definition: m_imu_pre.h:36
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:30
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:49