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

Skip to content
Snippets Groups Projects
Commit 72b76ce7 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

ICE: set motor speed to idle speed in case the vehicle stands still and ICE is off

parent 5b88cb4e
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
//throw new VectoSimulationException("Combustion engine cannot supply outtorque when switched off (T_out: {0})", outTorque);
}
CurrentState.EngineOn = false;
CurrentState.EngineSpeed = outAngularVelocity; //ModelData.IdleSpeed;
CurrentState.EngineSpeed = DataBus.VehicleInfo.VehicleStopped ? ModelData.IdleSpeed : outAngularVelocity; //ModelData.IdleSpeed;
CurrentState.EngineTorque = 0.SI<NewtonMeter>();
CurrentState.EngineTorqueOut = 0.SI<NewtonMeter>();
CurrentState.EnginePower = 0.SI<Watt>();
......
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