Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
throttle_curve.c File Reference
+ Include dependency graph for throttle_curve.c:

Go to the source code of this file.

Macros

#define THROTTLE_CURVE_SWITCH_VAL   (MAX_PPRZ*2/THROTTLE_CURVES_NB)
 

Functions

void throttle_curve_init (void)
 Initialize the default throttle curve values. More...
 
void throttle_curve_run (bool motors_on, pprz_t in_cmd[])
 Run the throttle curve and generate the output throttle and pitch This depends on the FMODE(flight mode) and TRHUST command. More...
 
void nav_throttle_curve_set (uint8_t mode)
 Set a specific throttle curve based on the mode given with this function. More...
 

Variables

struct throttle_curve_t throttle_curve
 

Detailed Description

Author
C. De Wagter and Freek van Tienen Throttle Curve Mixers

Definition in file throttle_curve.c.

Macro Definition Documentation

#define THROTTLE_CURVE_SWITCH_VAL   (MAX_PPRZ*2/THROTTLE_CURVES_NB)

Definition at line 31 of file throttle_curve.c.

Referenced by nav_throttle_curve_set(), and throttle_curve_run().

Function Documentation

void nav_throttle_curve_set ( uint8_t  mode)

Set a specific throttle curve based on the mode given with this function.

Definition at line 88 of file throttle_curve.c.

References commands, MAX_PPRZ, and THROTTLE_CURVE_SWITCH_VAL.

void throttle_curve_init ( void  )

Initialize the default throttle curve values.

Definition at line 42 of file throttle_curve.c.

References curve_t::collective, throttle_curve_t::collective, throttle_curve_t::curves, throttle_curve_t::mode, curve_t::throttle, and throttle_curve_t::throttle.

void throttle_curve_run ( bool  motors_on,
pprz_t  in_cmd[] 
)

Run the throttle curve and generate the output throttle and pitch This depends on the FMODE(flight mode) and TRHUST command.

Definition at line 53 of file throttle_curve.c.

References curve_t::collective, throttle_curve_t::collective, throttle_curve_t::curves, MAX_PPRZ, throttle_curve_t::mode, mode, curve_t::nb_points, curve_t::throttle, throttle_curve_t::throttle, and THROTTLE_CURVE_SWITCH_VAL.

Variable Documentation

struct throttle_curve_t throttle_curve
Initial value:
= {
.nb_curves = THROTTLE_CURVES_NB,
.curves = THROTTLE_CURVES
}

Definition at line 34 of file throttle_curve.c.

Referenced by swashplate_mixing_run().