Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
stabilization_attitude_ref_quat_float.c File Reference

Rotorcraft attitude reference generation. More...

+ Include dependency graph for stabilization_attitude_ref_quat_float.c:

Go to the source code of this file.

Macros

#define STABILIZATION_ATTITUDE_REF_QUAT_INFINITESIMAL_STEP   TRUE
 default to fast but less precise quaternion integration More...
 

Functions

void attitude_ref_quat_float_init (struct AttRefQuatFloat *ref)
 
void attitude_ref_quat_float_enter (struct AttRefQuatFloat *ref, struct FloatQuat *state_quat)
 
void attitude_ref_quat_float_update (struct AttRefQuatFloat *ref, struct FloatQuat *sp_quat, float dt)
 
void attitude_ref_quat_float_idx_set_omega_p (struct AttRefQuatFloat *ref, uint8_t idx, float omega)
 
void attitude_ref_quat_float_idx_set_omega_q (struct AttRefQuatFloat *ref, uint8_t idx, float omega)
 
void attitude_ref_quat_float_idx_set_omega_r (struct AttRefQuatFloat *ref, uint8_t idx, float omega)
 
void attitude_ref_quat_float_set_omega_p (struct AttRefQuatFloat *ref, float omega)
 
void attitude_ref_quat_float_set_omega_q (struct AttRefQuatFloat *ref, float omega)
 
void attitude_ref_quat_float_set_omega_r (struct AttRefQuatFloat *ref, float omega)
 
void attitude_ref_quat_float_schedule (struct AttRefQuatFloat *ref, uint8_t idx)
 

Variables

static const float omega_p [] = STABILIZATION_ATTITUDE_REF_OMEGA_P
 
static const float zeta_p [] = STABILIZATION_ATTITUDE_REF_ZETA_P
 
static const float omega_q [] = STABILIZATION_ATTITUDE_REF_OMEGA_Q
 
static const float zeta_q [] = STABILIZATION_ATTITUDE_REF_ZETA_Q
 
static const float omega_r [] = STABILIZATION_ATTITUDE_REF_OMEGA_R
 
static const float zeta_r [] = STABILIZATION_ATTITUDE_REF_ZETA_R
 

Detailed Description

Rotorcraft attitude reference generation.

(quaternion float version)

Definition in file stabilization_attitude_ref_quat_float.c.

Macro Definition Documentation

◆ STABILIZATION_ATTITUDE_REF_QUAT_INFINITESIMAL_STEP

#define STABILIZATION_ATTITUDE_REF_QUAT_INFINITESIMAL_STEP   TRUE

default to fast but less precise quaternion integration

Definition at line 37 of file stabilization_attitude_ref_quat_float.c.

Function Documentation

◆ attitude_ref_quat_float_enter()

void attitude_ref_quat_float_enter ( struct AttRefQuatFloat ref,
struct FloatQuat state_quat 
)

Definition at line 78 of file stabilization_attitude_ref_quat_float.c.

References FLOAT_RATES_ZERO, QUAT_COPY, and ref.

Referenced by stabilization_attitude_enter().

+ Here is the caller graph for this function:

◆ attitude_ref_quat_float_idx_set_omega_p()

void attitude_ref_quat_float_idx_set_omega_p ( struct AttRefQuatFloat ref,
uint8_t  idx,
float  omega 
)

Definition at line 140 of file stabilization_attitude_ref_quat_float.c.

References idx, and ref.

Referenced by attitude_ref_quat_float_set_omega_p().

+ Here is the caller graph for this function:

◆ attitude_ref_quat_float_idx_set_omega_q()

void attitude_ref_quat_float_idx_set_omega_q ( struct AttRefQuatFloat ref,
uint8_t  idx,
float  omega 
)

Definition at line 146 of file stabilization_attitude_ref_quat_float.c.

References idx, and ref.

Referenced by attitude_ref_quat_float_set_omega_q().

+ Here is the caller graph for this function:

◆ attitude_ref_quat_float_idx_set_omega_r()

void attitude_ref_quat_float_idx_set_omega_r ( struct AttRefQuatFloat ref,
uint8_t  idx,
float  omega 
)

Definition at line 152 of file stabilization_attitude_ref_quat_float.c.

References idx, and ref.

Referenced by attitude_ref_quat_float_set_omega_r().

+ Here is the caller graph for this function:

◆ attitude_ref_quat_float_init()

◆ attitude_ref_quat_float_schedule()

void attitude_ref_quat_float_schedule ( struct AttRefQuatFloat ref,
uint8_t  idx 
)

Definition at line 177 of file stabilization_attitude_ref_quat_float.c.

References idx, and ref.

Referenced by stabilization_attitude_gain_schedule(), and stabilization_attitude_quat_float_init().

+ Here is the caller graph for this function:

◆ attitude_ref_quat_float_set_omega_p()

void attitude_ref_quat_float_set_omega_p ( struct AttRefQuatFloat ref,
float  omega 
)

Definition at line 158 of file stabilization_attitude_ref_quat_float.c.

References attitude_ref_quat_float_idx_set_omega_p(), and ref.

+ Here is the call graph for this function:

◆ attitude_ref_quat_float_set_omega_q()

void attitude_ref_quat_float_set_omega_q ( struct AttRefQuatFloat ref,
float  omega 
)

Definition at line 163 of file stabilization_attitude_ref_quat_float.c.

References attitude_ref_quat_float_idx_set_omega_q(), and ref.

+ Here is the call graph for this function:

◆ attitude_ref_quat_float_set_omega_r()

void attitude_ref_quat_float_set_omega_r ( struct AttRefQuatFloat ref,
float  omega 
)

Definition at line 168 of file stabilization_attitude_ref_quat_float.c.

References attitude_ref_quat_float_idx_set_omega_r(), and ref.

+ Here is the call graph for this function:

◆ attitude_ref_quat_float_update()

void attitude_ref_quat_float_update ( struct AttRefQuatFloat ref,
struct FloatQuat sp_quat,
float  dt 
)

Variable Documentation

◆ omega_p

const float omega_p[] = STABILIZATION_ATTITUDE_REF_OMEGA_P
static

◆ omega_q

const float omega_q[] = STABILIZATION_ATTITUDE_REF_OMEGA_Q
static

◆ omega_r

const float omega_r[] = STABILIZATION_ATTITUDE_REF_OMEGA_R
static

◆ zeta_p

const float zeta_p[] = STABILIZATION_ATTITUDE_REF_ZETA_P
static

◆ zeta_q

const float zeta_q[] = STABILIZATION_ATTITUDE_REF_ZETA_Q
static

◆ zeta_r

const float zeta_r[] = STABILIZATION_ATTITUDE_REF_ZETA_R
static