Jam Detection should be wired into etbErrorCode fix #7057

only:uaefi
This commit is contained in:
rusefillc 2024-11-08 15:04:36 -05:00
parent 3b1316f622
commit 308a7611b1
3 changed files with 5 additions and 2 deletions

View File

@ -597,6 +597,8 @@ bool EtbController::checkStatus() {
localReason = TpsState::IntermittentPps;
} else if (engine->engineState.lua.luaDisableEtb) {
localReason = TpsState::Lua;
} else if (!getLimpManager()->allowElectronicThrottle()) {
localReason = TpsState::JamDetected;
}
etbErrorCode = (int8_t)localReason;
@ -641,7 +643,7 @@ void EtbController::checkJam(percent_t setpoint, percent_t observation) {
if (absError > jamDetectThreshold && engine->module<IgnitionController>()->getIgnState()) {
if (m_jamDetectTimer.hasElapsedSec(jamTimeout)) {
// ETB is jammed!
efiPrintf(" ************* ETB is jammed! ***************");
jamDetected = true;
getLimpManager()->reportEtbProblem();

View File

@ -44,6 +44,7 @@ enum class TpsState : uint8_t {
NotConfigured, // 8
Redundancy, // 9
IntermittentPps, // 10
JamDetected, // 11
// keep this list in sync with etbCutCodeList in tunerstudio.template.ini!
};

View File

@ -259,7 +259,7 @@ enable2ndByteCanID = false
fuelIgnCutCodeList = bits, U08, [0:7], "None", "fatal error", "setting disabled", "RPM limit", "fault RPM limit", "boost cut", "oil pressure", "stop requested", "ETB problem", "launch control", "max injector duty", "flood clear", "engine sync", "kickstart", "ign off", "Lua", "ACR", "Lambda Prot", "GDI Comms", "Brake"
; TpsState
etbCutCodeList = bits, U08, [0:7], "None", "engine stopped", "TPS error", "PPS error", "TPS noise", "Autotune", "Lua", "Manual", "N/A", "Redundancy", "PPS noise"
etbCutCodeList = bits, U08, [0:7], "None", "engine stopped", "TPS error", "PPS error", "TPS noise", "Autotune", "Lua", "Manual", "N/A", "Redundancy", "PPS noise", "Jam"
outputDiagErrorList = bits, U08, [0:3], "Not used", "No error", "Open Load", "Short to Gnd", "Short to Battery", "Overload", "Driver Overtemp", "Driver disabled", "Unknown"
@@BOARD_PC_VARIABLES_FROM_FILE@@