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

Mahony 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_mahn_cfg
 Config settings for the Mahony sensor fusion algorithm. More...
 

Functions

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

Detailed Description

Mahony sensor fusion algorithm.

This file implements the Mahony sensor fusion algorithm.

Definition in file mahony.h.