Monado OpenXR Runtime
|
IMU pre filter struct. More...
Functions | |
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 identity. More... | |
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. More... | |
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. More... | |
IMU pre filter struct.
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.
See description of m_imu_pre_filter_part for formula used. Also rotates values with the imu_to_head pose.
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 identity.
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.
This changes the handedness of the coordinates.