Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit d3f7c426 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

set _lastenginePower in case it has not been set (switching from double-clutch...

set _lastenginePower in case it has not been set (switching from double-clutch to idle while disengaged
parent f09e6be3
No related branches found
No related tags found
No related merge requests found
......@@ -626,6 +626,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
_idleStart = absTime;
_lastEnginePower = _engine.PreviousState.EnginePower;
}
if (_lastEnginePower == null) {
_lastEnginePower = _engine.PreviousState.EnginePower;
}
IResponse retVal;
var idleTime = absTime - _idleStart + dt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment