Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
23 #ifndef ZEPHYR_INCLUDE_ZSL_FUSION_MADGWICK_H_
24 #define ZEPHYR_INCLUDE_ZSL_FUSION_MADGWICK_H_
int zsl_fus_madg_init(uint32_t freq, void *cfg)
Sets the sample frequency (in Hz) for the algorithm.
Represents a quaternion, a 4D structure capable of representing 3D rigid body orientations.
Config settings for the Madwick filter.
API header file for quaternions in zscilib.
void zsl_fus_madg_error(int error)
Default error handler for the Madgwick sensor fusion driver.
API header file for vectors in zscilib.
zsl_real_t beta
The filter gain beta is a positive number that represents the divergence rate of the gyroscope.
API header file for matrices in zscilib.
int zsl_fus_madg_feed(struct zsl_vec *a, struct zsl_vec *m, struct zsl_vec *g, zsl_real_t *incl, struct zsl_quat *q, void *cfg)
Madgwick sensor fusion algorithm implementation.
API header file for zscilib.