Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
21 #ifndef ZEPHYR_INCLUDE_ZSL_FUSION_CALIBRATION_H_
22 #define ZEPHYR_INCLUDE_ZSL_FUSION_CALIBRATION_H_
62 #ifndef CONFIG_ZSL_SINGLE_PRECISION
86 #ifndef CONFIG_ZSL_SINGLE_PRECISION
int zsl_fus_cal_rot_axis_angle(struct zsl_vec *v, struct zsl_vec *a, zsl_real_t *b, struct zsl_vec *v_rot)
Rotates accel/mag/gyro data using a given axis and angle.
Represents a m x n matrix, with data stored in row-major order.
int zsl_fus_cal_mahn(struct zsl_mtx *g, struct zsl_mtx *a, struct zsl_mtx *m, zsl_real_t sampleFreq, zsl_real_t *incl, zsl_real_t *kp)
Calculates the optimal value of the variable kp in the Mahony filter, given a set of magnetometer,...
API header file for statistics in zscilib.
int zsl_fus_cal_magn_fast(struct zsl_mtx *m, zsl_real_t *me, struct zsl_mtx *K, struct zsl_vec *b)
This function calculates the soft iron ('K') and the hard iron ('b') errors in the magnetometer data,...
int zsl_fus_cal_madg(struct zsl_mtx *g, struct zsl_mtx *a, struct zsl_mtx *m, zsl_real_t sampleFreq, zsl_real_t *incl, zsl_real_t *beta)
Calculates the optimal value of the variable beta in the Madgwick filter, given a set of magnetometer...
API header file for quaternions in zscilib.
int zsl_fus_cal_corr_vec(struct zsl_vec *v, struct zsl_mtx *K, struct zsl_vec *b, struct zsl_vec *v_out)
Corrects the supplied vector data by adding a vector the same size ('b') and then multiplying by a ma...
API header file for vectors in zscilib.
int zsl_fus_cal_corr_scalar(zsl_real_t *d, zsl_real_t *k, zsl_real_t *b, zsl_real_t *d_out)
Corrects the supplied scalar number by adding another number ('b') and multiplying the sum by a scala...
API header file for attitude and AHRS in zscilib.
int zsl_fus_cal_rot_mtx(struct zsl_vec *v, struct zsl_mtx *m, struct zsl_vec *v_rot)
Rotates accel/mag/gyro data using a given rotation matrix.
API header file for matrices in zscilib.
API header file for zscilib.
int zsl_fus_cal_magn(struct zsl_mtx *m, zsl_real_t *l, zsl_real_t *mu, struct zsl_mtx *K, struct zsl_vec *b)
This function calculates the soft iron ('K') and the hard iron ('b') errors in the magnetometer data,...