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

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

Adding n80h to databus (required for AT Shift strategy)

parent c8e8d804
No related branches found
No related tags found
No related merge requests found
......@@ -54,5 +54,7 @@ namespace TUGraz.VectoCore.Models.Simulation.DataBus
PerSecond EngineRatedSpeed { get; }
PerSecond EngineN95hSpeed { get; }
PerSecond EngineN80hSpeed { get; }
}
}
\ No newline at end of file
......@@ -174,6 +174,11 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
get { return Engine.EngineN95hSpeed; }
}
public PerSecond EngineN80hSpeed
{
get { return Engine.EngineN80hSpeed; }
}
#endregion
#region IVehicleCockpit
......
......@@ -47,6 +47,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Engine
private PerSecond _engineSpeedLo; // 55% of Pmax
private PerSecond _engineSpeedHi; // 70% of Pmax
private PerSecond _n95hSpeed; // 95% of Pmax
private PerSecond _n80hSpeed; // 80% of Pmax
public static EngineFullLoadCurve ReadFromFile(string fileName, bool declarationMode = false)
{
......@@ -94,6 +95,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Engine
}
}
public PerSecond N80hSpeed
{
get { return _n80hSpeed ?? (_n80hSpeed = FindEngineSpeedForPower(0.8 * MaxPower).Last()); }
}
public PerSecond N95hSpeed
{
get { return _n95hSpeed ?? (_n95hSpeed = FindEngineSpeedForPower(0.95 * MaxPower).Last()); }
......
......@@ -126,6 +126,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
get { return ModelData.FullLoadCurve.N95hSpeed; }
}
public PerSecond EngineN80hSpeed
{
get { return ModelData.FullLoadCurve.N80hSpeed; }
}
public ICombustionEngineIdleController IdleController
{
get { return EngineIdleController ?? (EngineIdleController = new CombustionEngineIdleController(this)); }
......
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