Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
23 #ifndef ZEPHYR_INCLUDE_ZSL_FUSION_MAHONY_H_
24 #define ZEPHYR_INCLUDE_ZSL_FUSION_MAHONY_H_
struct zsl_vec intfb
Integral feedback vector, which is updated every iteration. Its initial value must be (0,...
zsl_real_t kp
Proportional filter gain constant. Must be greater than 0.
Represents a quaternion, a 4D structure capable of representing 3D rigid body orientations.
zsl_real_t integral_limit
Integral limit for the integrator to avoid windup. Must be greater than 0.
int zsl_fus_mahn_init(uint32_t freq, void *cfg)
Sets the sample frequency (in Hz) for the algorithm.
void zsl_fus_mahn_error(int error)
Default error handler for the Mahony sensor fusion driver.
API header file for quaternions in zscilib.
API header file for vectors in zscilib.
Config settings for the Mahony sensor fusion algorithm.
API header file for matrices in zscilib.
API header file for zscilib.
zsl_real_t ki
Integral filter gain constant. Must be greater than 0.
int zsl_fus_mahn_feed(struct zsl_vec *a, struct zsl_vec *m, struct zsl_vec *g, zsl_real_t *incl, struct zsl_quat *q, void *cfg)
Mahony sensor fusion algorithm implementation.