mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Better implementation for the automatic detection of a 6pos switch
This commit is contained in:
parent
a292fabb02
commit
b4c6d123c8
3 changed files with 40 additions and 35 deletions
|
@ -1575,9 +1575,15 @@ union ReusableBuffer
|
|||
int16_t loVals[NUM_STICKS+NUM_POTS];
|
||||
int16_t hiVals[NUM_STICKS+NUM_POTS];
|
||||
uint8_t state;
|
||||
uint8_t xpotsPositionsCount[NUM_XPOTS];
|
||||
int16_t xpotsPositions[NUM_XPOTS][6][2];
|
||||
#if defined(PCBTARANIS)
|
||||
struct {
|
||||
uint8_t stepsCount;
|
||||
int16_t steps[POTS_POS_COUNT];
|
||||
uint8_t lastCount;
|
||||
int16_t lastPosition;
|
||||
} xpotsCalib[NUM_XPOTS];
|
||||
} calib;
|
||||
#endif
|
||||
|
||||
#if defined(SDCARD)
|
||||
struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue