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:
parent
6d7035819f
commit
b0b83b31db
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue