From 74109d15ac456362cfa73f5b3578b48a9373d3fc Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 15 Oct 2015 08:52:18 +0200 Subject: [PATCH] combustion engine: idle controller: always do search for idle speed --- .../Models/SimulationComponent/Impl/CombustionEngine.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs b/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs index dc6b216fb7..61278d67b9 100644 --- a/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs +++ b/VectoCore/Models/SimulationComponent/Impl/CombustionEngine.cs @@ -45,7 +45,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl internal EngineState PreviousState = new EngineState(); - protected readonly CombustionEngineData Data; + protected internal readonly CombustionEngineData Data; public CombustionEngine(IVehicleContainer cockpit, CombustionEngineData data) : base(cockpit) @@ -508,10 +508,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl nextAngularSpeed = prevEngineSpeed + deltaAngularSpeed; if (nextAngularSpeed < Engine.Data.IdleSpeed) { - // search for EnginePower such that nextAngularSpeed == Engine.Data.IdleSpeed - var tmp = RequestPort.Request(absTime, dt, torque, Engine.Data.IdleSpeed); - return tmp; - //throw new NotImplementedException("Search for PE s.t. n2 = n_idle"); + nextAngularSpeed = Engine.Data.IdleSpeed; } retVal = RequestPort.Request(absTime, dt, torque, nextAngularSpeed); -- GitLab