TpsState::AutoTune

only:uaefi
This commit is contained in:
rusefi 2024-11-08 14:41:58 -05:00
parent c7663fad10
commit 1c30a21843
3 changed files with 7 additions and 3 deletions

View File

@ -764,7 +764,11 @@ static EtbController* etbControllers[] = { &etb1, &etb2 };
void blinkEtbErrorCodes(bool blinkPhase) {
for (int i = 0;i<ETB_COUNT;i++) {
etbControllers[i]->etbErrorCodeBlinker = blinkPhase ? 0 : etbControllers[i]->etbErrorCode;
int8_t etbErrorCode = etbControllers[i]->etbErrorCode;
if (etbErrorCode && engine->etbAutoTune) {
etbErrorCode = (int8_t)TpsState::AutoTune;
}
etbControllers[i]->etbErrorCodeBlinker = blinkPhase ? 0 : etbErrorCode;
}
}

View File

@ -38,7 +38,7 @@ enum class TpsState : uint8_t {
TpsError, // 2
PpsError, // 3
IntermittentTps, // 4
UnusedCode5, // 5
AutoTune, // 5
Lua, // 6
Manual, // 7
NotConfigured, // 8

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", "INVALID", "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"
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@@