1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Make the adjustment controls more sensitive by using a smaller 3POS

switch deadzone.
This commit is contained in:
Dominic Clifton 2014-10-22 23:20:59 +01:00
parent 6d7035819f
commit b0b83b31db

View file

@ -316,9 +316,9 @@ void processRcAdjustments(controlRateConfig_t *controlRateConfig, rxConfig_t *rx
uint8_t channelIndex = NON_AUX_CHANNEL_COUNT + adjustmentConfig->auxChannelIndex; uint8_t channelIndex = NON_AUX_CHANNEL_COUNT + adjustmentConfig->auxChannelIndex;
int step; int step;
if (rcData[channelIndex] > rxConfig->maxcheck) { if (rcData[channelIndex] > rxConfig->midrc + 200) {
step = adjustmentConfig->step; step = adjustmentConfig->step;
} else if (rcData[channelIndex] < rxConfig->mincheck) { } else if (rcData[channelIndex] < rxConfig->midrc - 200) {
step = 0 - adjustmentConfig->step; step = 0 - adjustmentConfig->step;
} else { } else {
// returning the switch to the middle immediately resets the ready state // returning the switch to the middle immediately resets the ready state