clutch input via CAN fix #3605

This commit is contained in:
rusefillc 2021-12-15 20:35:49 -05:00
parent 8ed86c78b2
commit 99d19f2d78
1 changed files with 10 additions and 0 deletions

View File

@ -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);