This commit is contained in:
parent
f395d4dde4
commit
f94aa7a7cd
|
@ -285,6 +285,8 @@ void Engine::resetLua() {
|
|||
engineState.lua = {};
|
||||
engineState.lua.fuelAdd = 0;
|
||||
engineState.lua.fuelMult = 1;
|
||||
engineState.lua.luaDisableEtb = false;
|
||||
engineState.lua.luaIgnCut = false;
|
||||
#if EFI_BOOST_CONTROL
|
||||
boostController.resetLua();
|
||||
#endif // EFI_BOOST_CONTROL
|
||||
|
|
|
@ -10,6 +10,7 @@ struct LuaAdjustments
|
|||
bit brakePedalState
|
||||
bit acRequestState
|
||||
bit luaDisableEtb
|
||||
bit luaIgnCut
|
||||
|
||||
end_struct
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ enum class ClearReason : uint8_t {
|
|||
EnginePhase, // 12
|
||||
KickStart, // 13
|
||||
IgnitionOff, // 14
|
||||
Lua,
|
||||
|
||||
// Keep this list in sync with fuelIgnCutCodeList in rusefi.input!
|
||||
// todo: add a code generator between ClearReason and fuelIgnCutCodeList in rusefi.input
|
||||
|
|
|
@ -245,7 +245,7 @@ enable2ndByteCanID = false
|
|||
wboFaultCodeList = bits, U08, [0:3], "OK", "Unk", "Unk", "failed to heat", "overheat", "underheat", "no supply"
|
||||
|
||||
; ClearReason
|
||||
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"
|
||||
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"
|
||||
|
||||
; TpsState
|
||||
etbCutCodeList = bits, U08, [0:7], "None", "engine stopped", "TPS error", "PPS error", "TPS noise", "PID noise", "Lua", "Manual", "N/A", "Redundancy", "PPS noise"
|
||||
|
|
Loading…
Reference in New Issue