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

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

at shift strategy: move emergency upshift to n95h (same as for AMT)

parent 32abb702
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
return true;
}
// Emergency Upshift: if higher than engine rated speed
if (inAngularVelocity.IsGreaterOrEqual(VectoMath.Min(ModelData.Gears[gear].MaxSpeed, DataBus.EngineRatedSpeed))) {
if (inAngularVelocity.IsGreaterOrEqual(VectoMath.Min(ModelData.Gears[gear].MaxSpeed, DataBus.EngineN95hSpeed))) {
// check if upshift is possible
if (!ModelData.Gears.ContainsKey(gear + 1)) {
return false;
......
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