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

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
No related branches found
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.
Finish editing this message first!
Please register or to comment