1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Reset adjustment states when switching profiles.

Fixes #544.
This commit is contained in:
Dominic Clifton 2015-02-26 13:57:22 +00:00
parent 05b1b5a9b2
commit 55d9994ff8
3 changed files with 9 additions and 0 deletions

View file

@ -214,6 +214,7 @@ typedef struct adjustmentState_s {
#define MAX_ADJUSTMENT_RANGE_COUNT 12 // enough for 2 * 6pos switches.
void resetAdjustmentStates(void);
void configureAdjustment(uint8_t index, uint8_t auxChannelIndex, const adjustmentConfig_t *adjustmentConfig);
void updateAdjustmentStates(adjustmentRange_t *adjustmentRanges);
void processRcAdjustments(controlRateConfig_t *controlRateConfig, rxConfig_t *rxConfig);