1
0
Fork 0
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:
Bertrand Songis 2014-01-15 21:15:28 +01:00
parent a292fabb02
commit b4c6d123c8
3 changed files with 40 additions and 35 deletions

View file

@ -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