1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Added DYNAMIC mixer

This commit is contained in:
borisbstyle 2020-11-29 23:45:31 +01:00 committed by Michael Keller
parent 75da17a00e
commit 4a916af6a9
5 changed files with 28 additions and 11 deletions

View file

@ -60,6 +60,13 @@ typedef enum mixerMode
MIXER_QUADX_1234 = 26
} mixerMode_e;
typedef enum mixerType
{
MIXER_LEGACY = 0,
MIXER_LINEAR = 1,
MIXER_DYNAMIC = 2,
} mixerType_e;
// Custom mixer data per motor
typedef struct motorMixer_s {
float throttle;
@ -82,7 +89,7 @@ typedef struct mixerConfig_s {
bool yaw_motors_reversed;
uint8_t crashflip_motor_percent;
uint8_t crashflip_expo;
uint8_t linear_mixer;
uint8_t mixer_type;
} mixerConfig_t;
PG_DECLARE(mixerConfig_t, mixerConfig);