Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

do not downshift if already in first gear (AT gearbox)

parent 4ab96e41
Branches
Tags
No related merge requests found
......@@ -196,7 +196,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Second absTime, NewtonMeter outTorque, PerSecond outAngularVelocity, PerSecond inAngularVelocity, GearshiftPosition gear)
{
// Emergency Downshift: if lower than engine idle speed
if (inAngularVelocity.IsSmaller(DataBus.EngineInfo.EngineIdleSpeed)) {
if (inAngularVelocity.IsSmaller(DataBus.EngineInfo.EngineIdleSpeed) && Gears.HasPredecessor(gear)) {
Log.Debug("engine speed would fall below idle speed - shift down");
Downshift(absTime, gear);
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment