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

Complementary sensor fusion algorithm. More...

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

Go to the source code of this file.

Data Structures

struct  zsl_fus_comp_cfg
 Config settings for the complementary sensor fusion algorithm. More...
 

Functions

int zsl_fus_comp_init (uint32_t freq, void *cfg)
 Sets the sample frequency (in Hz) for the algorithm. More...
 
int zsl_fus_comp_feed (struct zsl_vec *a, struct zsl_vec *m, struct zsl_vec *g, zsl_real_t *incl, struct zsl_quat *q, void *cfg)
 Complementary sensor fusion algorithm implementation. More...
 
void zsl_fus_comp_error (int error)
 Default error handler for the complementary sensor fusion driver. More...
 

Detailed Description

Complementary sensor fusion algorithm.

This file implements the complementary sensor fusion algorithm.

Definition in file complementary.h.