Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ahrs_aligner.h File Reference

Interface to align the AHRS via low-passed measurements at startup. More...

#include "std.h"
#include "math/pprz_algebra_int.h"
+ Include dependency graph for ahrs_aligner.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AhrsAligner
 

Macros

#define AHRS_ALIGNER_UNINIT   0
 
#define AHRS_ALIGNER_RUNNING   1
 
#define AHRS_ALIGNER_LOCKED   2
 

Functions

void ahrs_aligner_init (void)
 
void ahrs_aligner_run (void)
 

Variables

struct AhrsAligner ahrs_aligner
 

Detailed Description

Interface to align the AHRS via low-passed measurements at startup.

Definition in file ahrs_aligner.h.

Macro Definition Documentation

#define AHRS_ALIGNER_LOCKED   2

Definition at line 37 of file ahrs_aligner.h.

Referenced by ahrs_aligner_run(), ahrs_init(), on_gyro_accel_event(), and on_gyro_event().

#define AHRS_ALIGNER_RUNNING   1

Definition at line 36 of file ahrs_aligner.h.

Referenced by ahrs_aligner_init().

#define AHRS_ALIGNER_UNINIT   0

Definition at line 35 of file ahrs_aligner.h.

Function Documentation

void ahrs_aligner_init ( void  )

Definition at line 45 of file ahrs_aligner.c.

References accel_sum, ahrs_aligner, AHRS_ALIGNER_RUNNING, gyro_sum, INT_RATES_ZERO, INT_VECT3_ZERO, AhrsAligner::low_noise_cnt, mag_sum, AhrsAligner::noise, samples_idx, and AhrsAligner::status.

Referenced by init_ap(), and main_init().

+ Here is the caller graph for this function:

Variable Documentation

struct AhrsAligner ahrs_aligner