27 #ifndef THROTTLE_CURVE_H
28 #define THROTTLE_CURVE_H
32 #include "generated/airframe.h"
struct curve_t curves[THROTTLE_CURVES_NB]
Throttle/pitch curves.
struct throttle_curve_t throttle_curve
uint8_t nb_points
The number of points in the curve.
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 mo...
uint16_t throttle
Output thrust(throttle) of the throttle curve.
int16_t collective[THROTTLE_POINTS_NB]
The collective points in the curve.
uint8_t nb_curves
The number of throttle/pitch curves.
void throttle_curve_init(void)
Initialize the default throttle curve values.
uint16_t throttle[THROTTLE_POINTS_NB]
Throttle points in the curve.
int16_t collective
Output collective of the throttle curve.