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

Rate stabilization for rotorcrafts based on INDI by Ewoud Smeur. More...

+ Include dependency graph for stabilization_rate_indi.c:

Go to the source code of this file.

Macros

#define STABILIZATION_INDI_MAX_RATE   6.0
 Maximum rate you can request in RC rate mode (rad/s) More...
 

Functions

static void send_rate (struct transport_tx *trans, struct link_device *dev)
 
void stabilization_rate_init (void)
 Initialize rate controller. More...
 
void stabilization_rate_enter (void)
 Reset 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...
 
struct StabilizationSetpoint stabilization_rate_read_rc (struct RadioControl *rc)
 

Variables

struct FloatRates stabilization_rate_sp
 

Detailed Description

Rate stabilization for rotorcrafts based on INDI by Ewoud Smeur.

Definition in file stabilization_rate_indi.c.

Macro Definition Documentation

◆ STABILIZATION_INDI_MAX_RATE

#define STABILIZATION_INDI_MAX_RATE   6.0

Maximum rate you can request in RC rate mode (rad/s)

Definition at line 43 of file stabilization_rate_indi.c.

Function Documentation

◆ send_rate()

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

Definition at line 49 of file stabilization_rate_indi.c.

References Stabilization::cmd, dev, dummy, FloatRates::p, FloatRates::q, FloatRates::r, stabilization, and stabilization_rate_sp.

Referenced by stabilization_rate_init().

+ Here is the caller graph for this function:

◆ stabilization_rate_enter()

void stabilization_rate_enter ( void  )

Reset rate controller.

Definition at line 84 of file stabilization_rate_indi.c.

References stabilization_indi_enter().

+ Here is the call graph for this function:

◆ stabilization_rate_init()

void stabilization_rate_init ( void  )

Initialize rate controller.

Definition at line 71 of file stabilization_rate_indi.c.

References DefaultPeriodic, FLOAT_RATES_ZERO, register_periodic_telemetry(), send_rate(), and stabilization_rate_sp.

+ Here is the call graph for this function:

◆ stabilization_rate_read_rc()

struct StabilizationSetpoint stabilization_rate_read_rc ( struct RadioControl rc)

Definition at line 92 of file stabilization_rate_indi.c.

References stab_sp_to_rates_f(), stabilization_indi_rate_run(), and stabilization_rate_sp.

+ Here is the call graph for this function:

◆ 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 92 of file stabilization_rate_indi.c.

Variable Documentation

◆ stabilization_rate_sp

struct FloatRates stabilization_rate_sp