mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
Issue 34 better fix
Issue 126 fixed
This commit is contained in:
parent
88b5b8f82c
commit
acfb88ac7b
1 changed files with 6 additions and 1 deletions
|
@ -2367,7 +2367,12 @@ inline void doMixerCalculations(tmr10ms_t tmr10ms, uint8_t tick10ms)
|
|||
val = calibratedStick[THR_STICK]; // get throttle channel value
|
||||
}
|
||||
else if (g_model.thrTraceSrc > NUM_POTS) {
|
||||
val = ex_chans[g_model.thrTraceSrc-NUM_POTS-1] / 2;
|
||||
uint8_t ch = g_model.thrTraceSrc-NUM_POTS-1;
|
||||
val = g_chans512[ch];
|
||||
if (g_model.limitData[ch].revert)
|
||||
val = -val + calc100toRESX(g_model.limitData[ch].max + 100) - RESX;
|
||||
else
|
||||
val = val - calc100toRESX(g_model.limitData[ch].min - 100) - RESX;
|
||||
}
|
||||
else {
|
||||
val = calibratedStick[g_model.thrTraceSrc+NUM_STICKS-1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue