Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
stabilization_rate.h File Reference

Rate stabilization for rotorcrafts. More...

+ Include dependency graph for stabilization_rate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STABILIZATION_RATE_DEADBAND_P   0
 
#define STABILIZATION_RATE_DEADBAND_Q   0
 
#define STABILIZATION_RATE_DEADBAND_R   200
 
#define ROLL_RATE_DEADBAND_EXCEEDED(_rc)
 
#define PITCH_RATE_DEADBAND_EXCEEDED(_rc)
 
#define YAW_RATE_DEADBAND_EXCEEDED(_rc)
 
#define RC_RATE_P   RADIO_ROLL
 
#define RC_RATE_Q   RADIO_PITCH
 
#define RC_RATE_R   RADIO_YAW
 

Functions

void stabilization_rate_init (void)
 Initialize rate controller. More...
 
void stabilization_rate_run (bool in_flight, struct StabilizationSetpoint *rate_sp, struct ThrustSetpoint *thrust, int32_t *cmd)
 Run indi rate interface from the "stabilization_rate_run" function. More...
 
void stabilization_rate_enter (void)
 Reset rate controller. More...
 
struct StabilizationSetpoint stabilization_rate_read_rc (struct RadioControl *rc)
 

Variables

struct FloatRates stabilization_rate_gain
 
struct FloatRates stabilization_rate_igain
 

Detailed Description

Rate stabilization for rotorcrafts.

Control loops for angular velocity.

Definition in file stabilization_rate.h.

Macro Definition Documentation

◆ PITCH_RATE_DEADBAND_EXCEEDED

#define PITCH_RATE_DEADBAND_EXCEEDED (   _rc)
Value:
#define STABILIZATION_RATE_DEADBAND_Q

Definition at line 49 of file stabilization_rate.h.

◆ RC_RATE_P

#define RC_RATE_P   RADIO_ROLL

Definition at line 64 of file stabilization_rate.h.

◆ RC_RATE_Q

#define RC_RATE_Q   RADIO_PITCH

Definition at line 65 of file stabilization_rate.h.

◆ RC_RATE_R

#define RC_RATE_R   RADIO_YAW

Definition at line 66 of file stabilization_rate.h.

◆ ROLL_RATE_DEADBAND_EXCEEDED

#define ROLL_RATE_DEADBAND_EXCEEDED (   _rc)
Value:
#define STABILIZATION_RATE_DEADBAND_P

Definition at line 45 of file stabilization_rate.h.

◆ STABILIZATION_RATE_DEADBAND_P

#define STABILIZATION_RATE_DEADBAND_P   0

Definition at line 36 of file stabilization_rate.h.

◆ STABILIZATION_RATE_DEADBAND_Q

#define STABILIZATION_RATE_DEADBAND_Q   0

Definition at line 39 of file stabilization_rate.h.

◆ STABILIZATION_RATE_DEADBAND_R

#define STABILIZATION_RATE_DEADBAND_R   200

Definition at line 42 of file stabilization_rate.h.

◆ YAW_RATE_DEADBAND_EXCEEDED

#define YAW_RATE_DEADBAND_EXCEEDED (   _rc)
Value:
#define STABILIZATION_RATE_DEADBAND_R

Definition at line 53 of file stabilization_rate.h.

Function Documentation

◆ stabilization_rate_enter()

void stabilization_rate_enter ( void  )

Reset rate controller.

Definition at line 113 of file stabilization_rate.c.

References FLOAT_RATES_ZERO, stabilization_indi_enter(), and stabilization_rate_sum_err.

Referenced by stabilization_attitude_read_rc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stabilization_rate_init()

◆ stabilization_rate_read_rc()

◆ stabilization_rate_run()

void stabilization_rate_run ( bool  in_flight,
struct StabilizationSetpoint rate_sp,
struct ThrustSetpoint thrust,
int32_t cmd 
)

Run indi rate interface from the "stabilization_rate_run" function.

Definition at line 118 of file stabilization_rate.c.

Referenced by stab_sp_rotate_f().

+ Here is the caller graph for this function:

Variable Documentation

◆ stabilization_rate_gain

struct FloatRates stabilization_rate_gain
extern

Definition at line 1 of file stabilization_rate.c.

Referenced by stabilization_rate_init(), and stabilization_rate_read_rc().

◆ stabilization_rate_igain

struct FloatRates stabilization_rate_igain
extern

Definition at line 1 of file stabilization_rate.c.

Referenced by stabilization_rate_init(), and stabilization_rate_read_rc().