Zephyr Scientific Library (zscilib)
Data Structures | Functions
madgwick.h File Reference

Madgwick sensor fusion algorithm. More...

#include <zsl/zsl.h>
#include <zsl/vectors.h>
#include <zsl/matrices.h>
#include <zsl/orientation/quaternions.h>

Go to the source code of this file.

Data Structures

struct  zsl_fus_madg_cfg
 Config settings for the Madwick filter. More...
 

Functions

int zsl_fus_madg_init (uint32_t freq, void *cfg)
 Sets the sample frequency (in Hz) for the algorithm. More...
 
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. More...
 
void zsl_fus_madg_error (int error)
 Default error handler for the Madgwick sensor fusion driver. More...
 

Detailed Description

Madgwick sensor fusion algorithm.

This file implements the Madgwick sensor fusion algorithm.

Definition in file madgwick.h.