fix: Throttle idle trim handling for surface, enable MT12 tests (#4520)
Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
3djc
raphaelcoeffic
parent
4c2ea7a60a
commit
dfaad73070
@@ -129,13 +129,17 @@ void doMainScreenGraphics()
|
||||
drawThrottle(LBOX_CENTERX, calibratedAnalogs[ADC_MAIN_TH]);
|
||||
#else
|
||||
int16_t calibStickVert = calibratedAnalogs[ADC_MAIN_LV];
|
||||
if (g_model.throttleReversed && inputMappingConvertMode(ADC_MAIN_LV) == THR_STICK)
|
||||
if (g_model.throttleReversed &&
|
||||
inputMappingConvertMode(ADC_MAIN_LV) == inputMappingGetThrottle()) {
|
||||
calibStickVert = -calibStickVert;
|
||||
}
|
||||
drawStick(LBOX_CENTERX, calibratedAnalogs[ADC_MAIN_LH], calibStickVert);
|
||||
|
||||
calibStickVert = calibratedAnalogs[ADC_MAIN_RV];
|
||||
if (g_model.throttleReversed && inputMappingConvertMode(ADC_MAIN_RV) == THR_STICK)
|
||||
if (g_model.throttleReversed &&
|
||||
inputMappingConvertMode(ADC_MAIN_RV) == inputMappingGetThrottle()) {
|
||||
calibStickVert = -calibStickVert;
|
||||
}
|
||||
drawStick(RBOX_CENTERX, calibratedAnalogs[ADC_MAIN_RH], calibStickVert);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user