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

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

introduce declaration constants for shift strategy parameters

parent 5f10f274
No related branches found
No related tags found
No related merge requests found
......@@ -218,9 +218,9 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdaper
});
}).ToDictionary(kv => kv.Key, kv => kv.Value);
retVal.DownshiftAfterUpshiftDelay = 10.SI<Second>();
retVal.UpshiftAfterDownshiftDelay = 10.SI<Second>();
retVal.UpshiftMinAcceleration = 0.1.SI<MeterPerSquareSecond>();
retVal.DownshiftAfterUpshiftDelay = DeclarationData.Gearbox.DownshiftAfterUpshiftDelay;
retVal.UpshiftAfterDownshiftDelay = DeclarationData.Gearbox.UpshiftAfterDownshiftDelay;
retVal.UpshiftMinAcceleration = DeclarationData.Gearbox.UpshiftMinAcceleration;
return retVal;
}
......
......@@ -262,6 +262,9 @@ namespace TUGraz.VectoCore.Models.Declaration
private static double ShiftPolygonEngineFldMargin = 0.98;
public static readonly Second MinTimeBetweenGearshifts = 2.SI<Second>();
public static readonly Second DownshiftAfterUpshiftDelay = 10.SI<Second>();
public static readonly Second UpshiftAfterDownshiftDelay = 10.SI<Second>();
public static readonly MeterPerSquareSecond UpshiftMinAcceleration = 0.1.SI<MeterPerSquareSecond>();
/// <summary>
/// computes the shift polygons for a single gear according to the whitebook 2016
......
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