Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Merge pull request #627 in VECTO/vecto-sim from...

Merge pull request #627 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:hotfix/VECTO-723-simulation-aborts-with-engine-speed-too-high-in-rd-cycle to master

* commit 'a7baab18':
  adding missing file
  bugfix in amt shift strategy: use min of n95h and gbx speed limit
parents 60eb1a00 a7baab18
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
private bool SpeedTooHighForEngine(uint gear, PerSecond outAngularSpeed)
{
return
(outAngularSpeed * ModelData.Gears[gear].Ratio).IsGreaterOrEqual(ModelData.Gears[gear].MaxSpeed ??
DataBus.EngineN95hSpeed);
(outAngularSpeed * ModelData.Gears[gear].Ratio).IsGreaterOrEqual(VectoMath.Min(ModelData.Gears[gear].MaxSpeed,
DataBus.EngineN95hSpeed));
}
public override GearInfo NextGear
......
This diff is collapsed.
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