30 PRINT_CONFIG_VAR(SW_MIXING_TYPE)
39 #ifndef SW_MIXING_TRIM_ROLL
40 #define SW_MIXING_TRIM_ROLL 0
45 #ifndef SW_MIXING_TRIM_PITCH
46 #define SW_MIXING_TRIM_PITCH 0
51 #ifndef SW_MIXING_TRIM_COLL
52 #define SW_MIXING_TRIM_COLL 0
65 for (i = 0; i <
SW_NB; i++) {
67 swashplate_mixing.
trim[i] =
84 for (i = 0; i <
SW_NB; i++) {
85 swashplate_mixing.
commands[i] = swashplate_mixing.
trim[i] +
#define SW_NB
MECH (front/right/coll), H120 (front/rightback/leftback), HR120 (back/leftfront/rightfront) ...
#define SW_MIXING_TRIM_PITCH
struct swashplate_mixing_t swashplate_mixing
struct throttle_curve_t throttle_curve
void swashplate_mixing_run(pprz_t in_cmd[])
static const float coll_coef[SW_NB]
#define SW_MIXING_PITCH_COEF
int32_t commands[SW_NB]
The output commands.
#define SW_MIXING_TRIM_COLL
void swashplate_mixing_init()
Initialize the motor mixing and calculate the trim values.
static const float roll_coef[SW_NB]
#define SW_MIXING_ROLL_COEF
#define SW_MIXING_COLL_COEF
#define SW_MIXING_TRIM_ROLL
int32_t trim[SW_NB]
Trim values for the different actuators.
int16_t collective
Output collective of the throttle curve.
static const float pitch_coef[SW_NB]