This commit is contained in:
3djc
2018-03-04 13:10:35 +01:00
committed by Andre Bernet
parent 4a88660a3d
commit a9716a340d
+6
View File
@@ -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();