Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stabilization_attitude_ref_quat_float.c File Reference
#include "generated/airframe.h"
#include "firmwares/rotorcraft/stabilization.h"
#include "subsystems/ahrs.h"
#include "stabilization_attitude_ref_float.h"
+ Include dependency graph for stabilization_attitude_ref_quat_float.c:

Go to the source code of this file.

Macros

#define REF_ACCEL_MAX_P   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_PDOT
 
#define REF_ACCEL_MAX_Q   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_QDOT
 
#define REF_ACCEL_MAX_R   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_RDOT
 
#define DT_UPDATE   (1./PERIODIC_FREQUENCY)
 

Functions

static void reset_psi_ref_from_body (void)
 
static void update_ref_quat_from_eulers (void)
 
void stabilization_attitude_ref_init (void)
 
void stabilization_attitude_ref_schedule (uint8_t idx)
 
void stabilization_attitude_ref_enter ()
 
void stabilization_attitude_ref_update ()
 

Variables

struct FloatEulers stab_att_sp_euler
 with INT32_ANGLE_FRAC More...
 
struct FloatQuat stab_att_sp_quat
 with INT32_QUAT_FRAC More...
 
struct FloatEulers stab_att_ref_euler
 with REF_ANGLE_FRAC More...
 
struct FloatQuat stab_att_ref_quat
 with INT32_QUAT_FRAC More...
 
struct FloatRates stab_att_ref_rate
 with REF_RATE_FRAC More...
 
struct FloatRates stab_att_ref_accel
 with REF_ACCEL_FRAC More...
 
struct FloatRefModel stab_att_ref_model [STABILIZATION_ATTITUDE_FLOAT_GAIN_NB]
 
static int ref_idx = STABILIZATION_ATTITUDE_FLOAT_GAIN_IDX_DEFAULT
 
static const float omega_p [] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_P
 
static const float zeta_p [] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_P
 
static const float omega_q [] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_Q
 
static const float zeta_q [] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_Q
 
static const float omega_r [] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_R
 
static const float zeta_r [] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_R
 

Macro Definition Documentation

#define DT_UPDATE   (1./PERIODIC_FREQUENCY)
#define REF_ACCEL_MAX_P   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_PDOT
#define REF_ACCEL_MAX_Q   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_QDOT
#define REF_ACCEL_MAX_R   STABILIZATION_ATTITUDE_FLOAT_REF_MAX_RDOT

Function Documentation

static void reset_psi_ref_from_body ( void  )
static
void stabilization_attitude_ref_enter ( void  )

Definition at line 96 of file stabilization_attitude_ref_quat_float.c.

Referenced by stabilization_attitude_enter().

+ Here is the caller graph for this function:

void stabilization_attitude_ref_schedule ( uint8_t  idx)

Definition at line 91 of file stabilization_attitude_ref_quat_float.c.

References ref_idx.

Referenced by stabilization_attitude_gain_schedule().

+ Here is the caller graph for this function:

static void update_ref_quat_from_eulers ( void  )
static

Variable Documentation

const float omega_p[] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_P
static
const float omega_q[] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_Q
static
const float omega_r[] = STABILIZATION_ATTITUDE_FLOAT_REF_OMEGA_R
static
struct FloatEulers stab_att_sp_euler
const float zeta_p[] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_P
static
const float zeta_q[] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_Q
static
const float zeta_r[] = STABILIZATION_ATTITUDE_FLOAT_REF_ZETA_R
static