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

Rotorcraft attitude stabilization in euler float version. More...

+ Include dependency graph for stabilization_attitude_euler_float.c:

Go to the source code of this file.

Macros

#define USE_ATT_REF   1
 
#define MAX_SUM_ERR   200
 

Functions

static void send_att (struct transport_tx *trans, struct link_device *dev)
 
static void send_att_ref (struct transport_tx *trans, struct link_device *dev)
 
void stabilization_attitude_euler_float_init (void)
 
void stabilization_attitude_enter (void)
 Attitude control enter function. More...
 
void stabilization_attitude_run (bool in_flight, struct StabilizationSetpoint *sp, struct ThrustSetpoint *thrust, int32_t *cmd)
 Attitude control run function. More...
 

Variables

struct FloatAttitudeGains stabilization_gains
 
struct FloatEulers stabilization_att_sum_err
 
static struct FloatEulers stab_att_sp_euler
 
static struct AttRefEulerFloat att_ref_euler_f
 
float stabilization_att_fb_cmd [COMMANDS_NB]
 
float stabilization_att_ff_cmd [COMMANDS_NB]
 

Detailed Description

Rotorcraft attitude stabilization in euler float version.

Definition in file stabilization_attitude_euler_float.c.

Macro Definition Documentation

◆ MAX_SUM_ERR

#define MAX_SUM_ERR   200

Definition at line 139 of file stabilization_attitude_euler_float.c.

◆ USE_ATT_REF

#define USE_ATT_REF   1

Definition at line 39 of file stabilization_attitude_euler_float.c.

Function Documentation

◆ send_att()

static void send_att ( struct transport_tx *  trans,
struct link_device *  dev 
)
static

◆ send_att_ref()

static void send_att_ref ( struct transport_tx *  trans,
struct link_device *  dev 
)
static

◆ stabilization_attitude_enter()

void stabilization_attitude_enter ( void  )

Attitude control enter function.

Definition at line 131 of file stabilization_attitude_euler_float.c.

◆ stabilization_attitude_euler_float_init()

◆ stabilization_attitude_run()

void stabilization_attitude_run ( bool  in_flight,
struct StabilizationSetpoint sp,
struct ThrustSetpoint thrust,
int32_t cmd 
)

Attitude control run function.

Parameters
[in]in_flighttrue if in flight
[in]sppointer to the stabilization setpoint structure
[in]thrustpointer to the thrust setoint structure
[out]cmdpointer to the output command vector

Definition at line 141 of file stabilization_attitude_euler_float.c.

Variable Documentation

◆ att_ref_euler_f

◆ stab_att_sp_euler

struct FloatEulers stab_att_sp_euler
static

◆ stabilization_att_fb_cmd

float stabilization_att_fb_cmd[COMMANDS_NB]

Definition at line 48 of file stabilization_attitude_euler_float.c.

Referenced by send_att(), and stabilization_attitude_run().

◆ stabilization_att_ff_cmd

float stabilization_att_ff_cmd[COMMANDS_NB]

Definition at line 49 of file stabilization_attitude_euler_float.c.

Referenced by send_att(), and stabilization_attitude_run().

◆ stabilization_att_sum_err

◆ stabilization_gains