Nick wonders if DC wastegate is still FUBAR #5075

This commit is contained in:
rusefi 2023-02-13 19:17:47 -05:00
parent f04e6c4c0b
commit 254c16f5bc
2 changed files with 4 additions and 2 deletions

View File

@ -583,7 +583,9 @@ mapSensor = Sensor.new("map")
mapSensor : setTimeout(3000) mapSensor : setTimeout(3000)
function onTick() function onTick()
mapSensor : set(40) local tps = getSensor("TPS1")
tps = (tps == nil and 0 or tps)
mapSensor : set(tps)
end end
)", efi::size(config->luaScript)); )", efi::size(config->luaScript));

View File

@ -633,7 +633,7 @@ void EtbController::update() {
if (getFunction() == ETB_Wastegate) { if (getFunction() == ETB_Wastegate) {
// boost controller runs it's own PID we just take the result // boost controller runs it's own PID we just take the result
m_motor->enable(); m_motor->enable();
m_motor->set(getWastegateOutput()); m_motor->set(getWastegateOutput() / PERCENT_MULT);
return; return;
} }