Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/ahrs/ahrs_madgwick.h"
#include "generated/airframe.h"
#include "math/pprz_algebra_float.h"
#include "modules/ahrs/ahrs_float_utils.h"
Go to the source code of this file.
Macros | |
#define | AHRS_MADGWICK_BETA 0.1f |
Functions | |
static void | init_state (void) |
void | ahrs_madgwick_init (void) |
void | ahrs_madgwick_align (struct FloatRates *lp_gyro, struct FloatVect3 *lp_accel) |
void | ahrs_madgwick_propagate (struct FloatRates *gyro, float dt) |
void | ahrs_madgwick_update_accel (struct FloatVect3 *accel) |
Variables | |
struct AhrsMadgwick | ahrs_madgwick |
#define AHRS_MADGWICK_BETA 0.1f |
Definition at line 35 of file ahrs_madgwick.c.
void ahrs_madgwick_align | ( | struct FloatRates * | lp_gyro, |
struct FloatVect3 * | lp_accel | ||
) |
Definition at line 59 of file ahrs_madgwick.c.
References ahrs_float_get_quat_from_accel(), ahrs_madgwick, AhrsMadgwick::bias, AhrsMadgwick::is_aligned, and AhrsMadgwick::quat.
Referenced by aligner_cb().
void ahrs_madgwick_init | ( | void | ) |
Definition at line 50 of file ahrs_madgwick.c.
References ahrs_madgwick, init_state(), AhrsMadgwick::is_aligned, and AhrsMadgwick::reset.
Referenced by ahrs_madgwick_register().
void ahrs_madgwick_propagate | ( | struct FloatRates * | gyro, |
float | dt | ||
) |
Definition at line 69 of file ahrs_madgwick.c.
References AhrsMadgwick::accel, ahrs_madgwick, AHRS_MADGWICK_BETA, AhrsMadgwick::bias, float_quat_derivative(), float_quat_normalize(), float_vect3_norm(), init_state(), AhrsMadgwick::is_aligned, FloatQuat::qi, AhrsMadgwick::quat, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, AhrsMadgwick::rates, RATES_DIFF, AhrsMadgwick::reset, logger_uart_parse::s1, logger_uart_parse::s2, logger_uart_parse::s3, VECT3_SDIV, FloatVect3::x, FloatVect3::y, and FloatVect3::z.
Referenced by gyro_cb().
void ahrs_madgwick_update_accel | ( | struct FloatVect3 * | accel | ) |
Definition at line 139 of file ahrs_madgwick.c.
References AhrsMadgwick::accel, and ahrs_madgwick.
Referenced by accel_cb().
|
inlinestatic |
Definition at line 43 of file ahrs_madgwick.c.
References AhrsMadgwick::accel, ahrs_madgwick, AhrsMadgwick::bias, float_quat_identity(), FLOAT_RATES_ZERO, FLOAT_VECT3_ZERO, and AhrsMadgwick::quat.
Referenced by ahrs_madgwick_init(), and ahrs_madgwick_propagate().
struct AhrsMadgwick ahrs_madgwick |
Definition at line 1 of file ahrs_madgwick.c.
Referenced by accel_cb(), ahrs_madgwick_align(), ahrs_madgwick_init(), ahrs_madgwick_propagate(), ahrs_madgwick_update_accel(), aligner_cb(), compute_body_orientation_and_rates(), gyro_cb(), init_state(), send_att(), and send_filter_status().