Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Utility functions for floating point AHRS implementations. More...
#include "math/pprz_algebra_float.h"
#include "subsystems/ahrs/ahrs_magnetic_field_model.h"
#include "std.h"
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) |
Utility functions for floating point AHRS implementations.
Definition in file ahrs_float_utils.h.
|
inlinestatic |
Definition at line 38 of file ahrs_float_utils.h.
References ACCELS_FLOAT_OF_BFP, EULERS_ASSIGN, MAGS_FLOAT_OF_BFP, FloatVect3::x, FloatVect3::y, and FloatVect3::z.
Referenced by ahrs_dcm_align().
|
inlinestatic |
Compute a quaternion representing roll and pitch from an accelerometer measurement.
Definition at line 64 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_fc_align(), ahrs_float_get_quat_from_accel_mag(), and ahrs_int_get_quat_from_accel().
|
inlinestatic |
Definition at line 89 of file ahrs_float_utils.h.
References ahrs_float_get_quat_from_accel(), float_quat_comp_norm_shortest(), float_quat_normalize(), float_rmat_of_quat(), float_rmat_transp_vmult(), MAGS_FLOAT_OF_BFP, FloatQuat::qi, QUAT_ASSIGN, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, SQUARE, FloatVect3::x, and FloatVect3::y.
Referenced by ahrs_fc_align(), ahrs_float_invariant_align(), ahrs_int_get_quat_from_accel_mag(), ahrs_mlkf_align(), and ins_float_invariant_align().