Nick wonders if DC wastegate is still FUBAR #5075
This commit is contained in:
parent
f04e6c4c0b
commit
254c16f5bc
|
@ -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));
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue