Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Data Structures | |
struct | curve_t |
struct | throttle_curve_t |
Functions | |
void | throttle_curve_init (void) |
Initialize the default throttle curve values. More... | |
void | throttle_curve_run (bool_t 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... | |
Variables | |
struct throttle_curve_t | throttle_curve |
Definition in file throttle_curve.h.
struct curve_t |
Definition at line 35 of file throttle_curve.h.
Data Fields | ||
---|---|---|
int16_t | collective[THROTTLE_POINTS_NB] | The collective points in the curve. |
uint8_t | nb_points | The number of points in the curve. |
uint16_t | throttle[THROTTLE_POINTS_NB] | Throttle points in the curve. |
struct throttle_curve_t |
Definition at line 42 of file throttle_curve.h.
Data Fields | ||
---|---|---|
int16_t | collective | Output collective of the throttle curve. |
struct curve_t | curves[THROTTLE_CURVES_NB] | Throttle/pitch curves. |
uint8_t | mode | Flight mode. |
uint8_t | nb_curves | The number of throttle/pitch curves. |
uint16_t | throttle | Output thrust(throttle) of the throttle curve. |
void throttle_curve_init | ( | void | ) |
Initialize the default throttle curve values.
Definition at line 41 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_t | 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 52 of file throttle_curve.c.
References curve_t::collective, throttle_curve_t::collective, throttle_curve_t::curves, MAX_PPRZ, throttle_curve_t::mode, curve_t::nb_points, curve_t::throttle, throttle_curve_t::throttle, and THROTTLE_CURVE_SWITCH_VAL.
struct throttle_curve_t throttle_curve |
Definition at line 33 of file throttle_curve.c.
Referenced by swashplate_mixing_run().