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:
parent
45d9678a39
commit
a2a9443045
3 changed files with 59 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue