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_float_utils.h File Reference

Utility functions for floating point AHRS implementations. More...

#include "subsystems/ahrs/ahrs_magnetic_field_model.h"
#include "std.h"
+ Include dependency graph for ahrs_float_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void ahrs_float_get_euler_from_accel_mag (struct FloatEulers *e, struct Int32Vect3 *accel, struct Int32Vect3 *mag)
 
static void ahrs_float_get_quat_from_accel (struct FloatQuat *q, struct Int32Vect3 *accel)
 Compute a quaternion representing roll and pitch from an accelerometer measurement. More...
 
static void ahrs_float_get_quat_from_accel_mag (struct FloatQuat *q, struct Int32Vect3 *accel, struct Int32Vect3 *mag)
 

Detailed Description

Utility functions for floating point AHRS implementations.

Definition in file ahrs_float_utils.h.

Function Documentation

static void ahrs_float_get_euler_from_accel_mag ( struct FloatEulers e,
struct Int32Vect3 accel,
struct Int32Vect3 mag 
)
inlinestatic

Definition at line 37 of file ahrs_float_utils.h.

References ACCELS_FLOAT_OF_BFP, AHRS_H_X, AHRS_H_Y, EULERS_ASSIGN, MAGS_FLOAT_OF_BFP, FloatVect3::x, FloatVect3::y, and FloatVect3::z.

Referenced by ahrs_align().

+ Here is the caller graph for this function:

static void ahrs_float_get_quat_from_accel ( struct FloatQuat q,
struct Int32Vect3 accel 
)
inlinestatic

Compute a quaternion representing roll and pitch from an accelerometer measurement.

Definition at line 61 of file ahrs_float_utils.h.

References ACCELS_FLOAT_OF_BFP, FLOAT_QUAT_NORMALIZE, FLOAT_VECT3_NORMALIZE, FloatQuat::qi, QUAT_ASSIGN, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, FloatVect3::x, FloatVect3::y, and FloatVect3::z.

Referenced by ahrs_align(), ahrs_float_get_quat_from_accel_mag(), and ahrs_int_get_quat_from_accel().

+ Here is the caller graph for this function:

static void ahrs_float_get_quat_from_accel_mag ( struct FloatQuat q,
struct Int32Vect3 accel,
struct Int32Vect3 mag 
)
inlinestatic