From a9716a340dc62f0a8867bf223bfb7f0bd3a28c70 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sun, 4 Mar 2018 13:10:35 +0100 Subject: [PATCH] For tests (#5702) --- radio/src/opentx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 1c3481ef0..fbecb6665 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1182,6 +1182,9 @@ void checkTHR() evalInputs(e_perout_mode_notrainer); // let do evalInputs do the job int16_t v = calibratedAnalogs[thrchn]; + if (g_model.thrTraceSrc && g_model.throttleReversed) { //TODO : proper review of THR source definition and handling + v = -v; + } if (v <= THRCHK_DEADBAND-1024) { return; // prevent warning if throttle input OK } @@ -1201,6 +1204,9 @@ void checkTHR() evalInputs(e_perout_mode_notrainer); // let do evalInputs do the job v = calibratedAnalogs[thrchn]; + if (g_model.thrTraceSrc && g_model.throttleReversed) { //TODO : proper review of THR source definition and handling + v = -v; + } #if defined(PWR_BUTTON_PRESS) uint32_t pwr_check = pwrCheck();