mirror of https://github.com/rusefi/wideband.git
simpify
This commit is contained in:
parent
5c9acd4c66
commit
770283accd
|
@ -94,7 +94,7 @@ static float GetDutyForState(HeaterState state, float heaterEsr)
|
||||||
return rampDuty;
|
return rampDuty;
|
||||||
case HeaterState::ClosedLoop:
|
case HeaterState::ClosedLoop:
|
||||||
// Negated because lower resistance -> hotter
|
// Negated because lower resistance -> hotter
|
||||||
return heaterPid.GetOutput(-HEATER_TARGET_ESR, -heaterEsr);
|
return -heaterPid.GetOutput(HEATER_TARGET_ESR, heaterEsr);
|
||||||
case HeaterState::Stopped:
|
case HeaterState::Stopped:
|
||||||
// Something has gone wrong, return 0.
|
// Something has gone wrong, return 0.
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue