Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
throttle_curve.h File Reference
#include "std.h"
#include "paparazzi.h"
#include "generated/airframe.h"
+ Include dependency graph for throttle_curve.h:
+ This graph shows which files directly or indirectly include this file:

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 (pprz_t in_cmd[], uint8_t autopilot_mode)
 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.h.


Data Structure Documentation

◆ curve_t

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 rpm[THROTTLE_POINTS_NB] RPM points in the curve.
uint16_t throttle[THROTTLE_POINTS_NB] Throttle points in the curve.

◆ throttle_curve_t

struct throttle_curve_t

Definition at line 43 of file throttle_curve.h.

+ Collaboration diagram for throttle_curve_t:
Data Fields
int32_t coll_trim Collective trim.
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 nav_mode Nav Flight mode.
uint8_t nb_curves The number of throttle/pitch curves.
uint16_t rpm Output RPM of the throttle curve.
float rpm_err_sum Summed RPM error.
float rpm_fb_i
float rpm_fb_p RPM feedback p gain.
uint16_t rpm_meas RPM measured.
bool rpm_measured Whenever the RPM is measured.
uint16_t throttle Output thrust(throttle) of the throttle curve.
int32_t throttle_trim RPM feedback i gain.

Function Documentation

◆ nav_throttle_curve_set()

void nav_throttle_curve_set ( uint8_t  mode)

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

Definition at line 208 of file throttle_curve.c.

References mode, throttle_curve_t::nav_mode, and throttle_curve.

◆ throttle_curve_init()

◆ throttle_curve_run()

Variable Documentation

◆ throttle_curve