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

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

AT shift strategy: avoid emergency upshift from TC to locked if acc in locked gear is less than 0

parent e32c84c1
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
nextInAngularSpeed = outAngularVelocity * ModelData.Gears[gear + 1].Ratio;
nextInTorque = outTorque / ModelData.Gears[gear + 1].Ratio;
}
if (!IsBelowDownShiftCurve(gear + 1, nextInTorque, nextInAngularSpeed)) {
var acc = EstimateAccelerationForGear(gear + 1, outAngularVelocity);
if ((acc > 0 || _gearbox.TCLocked) && !IsBelowDownShiftCurve(gear + 1, nextInTorque, nextInAngularSpeed)) {
Log.Debug("engine speed would be above max speed / rated speed - shift up");
Upshift(absTime, gear);
return true;
......
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