Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
swashplate_mixing.c File Reference
#include "swashplate_mixing.h"
#include "throttle_curve.h"
+ Include dependency graph for swashplate_mixing.c:

Go to the source code of this file.

Macros

#define SW_MIXING_TRIM_ROLL   0
 
#define SW_MIXING_TRIM_PITCH   0
 
#define SW_MIXING_TRIM_COLL   0
 

Functions

void swashplate_mixing_init ()
 Initialize the motor mixing and calculate the trim values. More...
 
void swashplate_mixing_run (pprz_t in_cmd[])
 

Variables

struct swashplate_mixing_t swashplate_mixing
 
static const float roll_coef [SW_NB] = SW_MIXING_ROLL_COEF
 
static const float pitch_coef [SW_NB] = SW_MIXING_PITCH_COEF
 
static const float coll_coef [SW_NB] = SW_MIXING_COLL_COEF
 

Detailed Description

Author
C. De Wagter and Freek van Tienen Helicopter Swashplate Mixing

Definition in file swashplate_mixing.c.

Macro Definition Documentation

◆ SW_MIXING_TRIM_COLL

#define SW_MIXING_TRIM_COLL   0

Definition at line 52 of file swashplate_mixing.c.

◆ SW_MIXING_TRIM_PITCH

#define SW_MIXING_TRIM_PITCH   0

Definition at line 46 of file swashplate_mixing.c.

◆ SW_MIXING_TRIM_ROLL

#define SW_MIXING_TRIM_ROLL   0

Definition at line 40 of file swashplate_mixing.c.

Function Documentation

◆ swashplate_mixing_init()

void swashplate_mixing_init ( void  )

Initialize the motor mixing and calculate the trim values.

Definition at line 60 of file swashplate_mixing.c.

References coll_coef, swashplate_mixing_t::commands, pitch_coef, roll_coef, SW_MIXING_TRIM_COLL, SW_MIXING_TRIM_PITCH, SW_MIXING_TRIM_ROLL, SW_NB, swashplate_mixing, and swashplate_mixing_t::trim.

◆ swashplate_mixing_run()

void swashplate_mixing_run ( pprz_t  in_cmd[])

Variable Documentation

◆ coll_coef

const float coll_coef[SW_NB] = SW_MIXING_COLL_COEF
static

Definition at line 36 of file swashplate_mixing.c.

Referenced by swashplate_mixing_init(), and swashplate_mixing_run().

◆ pitch_coef

const float pitch_coef[SW_NB] = SW_MIXING_PITCH_COEF
static

Definition at line 35 of file swashplate_mixing.c.

Referenced by swashplate_mixing_init(), and swashplate_mixing_run().

◆ roll_coef

const float roll_coef[SW_NB] = SW_MIXING_ROLL_COEF
static

Definition at line 34 of file swashplate_mixing.c.

Referenced by swashplate_mixing_init(), and swashplate_mixing_run().

◆ swashplate_mixing

struct swashplate_mixing_t swashplate_mixing

Definition at line 1 of file swashplate_mixing.c.

Referenced by swashplate_mixing_init(), and swashplate_mixing_run().