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

add downshift only for gears above 1

parent 63596a70
No related branches found
No related tags found
No related merge requests found
...@@ -265,7 +265,10 @@ namespace TUGraz.VectoCore.Models.Declaration ...@@ -265,7 +265,10 @@ namespace TUGraz.VectoCore.Models.Declaration
var fldMargin = ShiftPolygonFldMargin(fullLoadCurve.FullLoadEntries, engineSpeed85kmhLastGear * 0.9); var fldMargin = ShiftPolygonFldMargin(fullLoadCurve.FullLoadEntries, engineSpeed85kmhLastGear * 0.9);
var downshiftCorr = MoveDownshiftBelowFld(Edge.Create(p6, p3), fldMargin, 1.1 * fullLoadCurve.MaxTorque); var downshiftCorr = MoveDownshiftBelowFld(Edge.Create(p6, p3), fldMargin, 1.1 * fullLoadCurve.MaxTorque);
var downShift =
var downShift = new List<ShiftPolygon.ShiftPolygonEntry>();
if (gear > 0) {
downShift =
new[] { p2, downshiftCorr.P1, downshiftCorr.P2 }.Select( new[] { p2, downshiftCorr.P1, downshiftCorr.P2 }.Select(
point => new ShiftPolygon.ShiftPolygonEntry() { point => new ShiftPolygon.ShiftPolygonEntry() {
AngularSpeed = point.X.SI<PerSecond>(), AngularSpeed = point.X.SI<PerSecond>(),
...@@ -273,7 +276,7 @@ namespace TUGraz.VectoCore.Models.Declaration ...@@ -273,7 +276,7 @@ namespace TUGraz.VectoCore.Models.Declaration
}).ToList(); }).ToList();
downShift[0].Torque = maxDragTorque; downShift[0].Torque = maxDragTorque;
}
var upShift = new List<ShiftPolygon.ShiftPolygonEntry>(); var upShift = new List<ShiftPolygon.ShiftPolygonEntry>();
if (gear >= gears.Count - 1) { if (gear >= gears.Count - 1) {
return new ShiftPolygon(downShift, upShift); return new ShiftPolygon(downShift, upShift);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment