1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 23:35:34 +03:00

Add anti gravity as feature and mode

This commit is contained in:
borisbstyle 2017-03-31 15:55:31 +02:00
parent 53bd377742
commit 2d9306652d
9 changed files with 365 additions and 8 deletions

View file

@ -24,7 +24,7 @@ typedef enum {
BOXANGLE,
BOXHORIZON,
BOXBARO,
// BOXVARIO,
BOXANTIGRAVITY,
BOXMAG,
BOXHEADFREE,
BOXHEADADJ,
@ -271,6 +271,7 @@ typedef struct adjustmentProfile_s {
} adjustmentProfile_t;
bool isAirmodeActive(void);
bool isAntiGravityModeActive(void);
void resetAdjustmentStates(void);
void updateAdjustmentStates(adjustmentRange_t *adjustmentRanges);
void processRcAdjustments(controlRateConfig_t *controlRateConfig, struct rxConfig_s *rxConfig);