1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Seperate adjustment configuration from adjustment state. Rename 'step'

parameter to 'delta' applying the adjustment.  Configure adjustment
states based on adjustment configuration for AUX3 and AUX4.
This commit is contained in:
Dominic Clifton 2014-10-24 15:46:07 +01:00
parent 45d9678a39
commit a2a9443045
3 changed files with 59 additions and 23 deletions

View file

@ -135,10 +135,17 @@ typedef enum {
ADJUSTMENT_RC_RATE
} adjustmentFunction_e;
typedef struct adjustmentConfig_s {
uint8_t adjustmentFunction;
uint8_t step;
} adjustmentConfig_t;
#define ADJUSTMENT_COUNT 1
#define ADJUSTMENT_INDEX_OFFSET 1
void configureAdjustment(uint8_t index, uint8_t auxChannelIndex, const adjustmentConfig_t *adjustmentConfig);
void processRcAdjustments(controlRateConfig_t *controlRateConfig, rxConfig_t *rxConfig);
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions);