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 d75ca61b authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

effshift: do not upshift if acceleration is negative

parent 7394a7e2
Branches
No related tags found
No related merge requests found
......@@ -342,6 +342,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var isAboveUpShift = IsAboveUpShiftCurve(gear, nextEngineTorque, nextEngineSpeed, _gearbox.TorqueConverterLocked);
var minAccelerationReachable = true;
if (DataBus.DriverInfo.DriverAcceleration.IsSmaller(0)) {
return null;
}
if (!DataBus.VehicleInfo.VehicleSpeed.IsEqual(0)) {
var reachableAcceleration = EstimateAccelerationForGear(nextGear, outAngularVelocity);
var minAcceleration = _gearbox.TorqueConverterLocked
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment