clutch input via CAN fix #3605
This commit is contained in:
parent
4b1c0914f1
commit
3499208747
|
@ -535,6 +535,16 @@ void configureRusefiLuaHooks(lua_State* l) {
|
||||||
return 0;
|
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) {
|
lua_register(l, "getCalibration", [](lua_State* l) {
|
||||||
auto propertyName = luaL_checklstring(l, 1, nullptr);
|
auto propertyName = luaL_checklstring(l, 1, nullptr);
|
||||||
auto result = getConfigValueByName(propertyName);
|
auto result = getConfigValueByName(propertyName);
|
||||||
|
|
Loading…
Reference in New Issue