clutch input via CAN fix #3605
This commit is contained in:
parent
8ed86c78b2
commit
99d19f2d78
|
@ -535,6 +535,16 @@ void configureRusefiLuaHooks(lua_State* l) {
|
|||
return 0;
|
||||
});
|
||||
|
||||
lua_register(l, "setClutchUpState", [](lua_State* l) {
|
||||
engine->engineState.luaAdjustments.clutchUpState = lua_toboolean(l, 1);
|
||||
return 0;
|
||||
});
|
||||
|
||||
lua_register(l, "setBrakePedalState", [](lua_State* l) {
|
||||
engine->engineState.luaAdjustments.brakePedalState = lua_toboolean(l, 1);
|
||||
return 0;
|
||||
});
|
||||
|
||||
lua_register(l, "getCalibration", [](lua_State* l) {
|
||||
auto propertyName = luaL_checklstring(l, 1, nullptr);
|
||||
auto result = getConfigValueByName(propertyName);
|
||||
|
|
Loading…
Reference in New Issue