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

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

attach units to constants (comparison)

parent 65323128
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,13 @@ namespace TUGraz.VectoCore.Configuration
/// threshold for changes in the road gradient. changes below this threshold will be considered to be equal for filtering out the driving cycle.
/// altitude computation is done before filtering!
/// </summary>
public static readonly double DrivingCycleRoadGradientTolerance = 1E-12;
public static readonly Radian DrivingCycleRoadGradientTolerance = 1E-12.SI<Radian>();
//VectoMath.InclinationToAngle(0.25 / 100.0).Value();
public const int DriverSearchLoopThreshold = 100;
public const double EnginePowerSearchTolerance = 0.50; // Watt
public static readonly Watt EnginePowerSearchTolerance = 0.50.SI<Watt>(); // Watt
public const double CluchNormSpeed = 0.03;
......@@ -75,14 +75,15 @@ namespace TUGraz.VectoCore.Configuration
/// <summary>
/// The initial search interval for the breaking power search in the driver.
/// </summary>
public static Watt BreakingPowerInitialSearchInterval = 20.SI().Kilo.Watt.Cast<Watt>();
public static readonly Watt BreakingPowerInitialSearchInterval = 20.SI().Kilo.Watt.Cast<Watt>();
/// <summary>
/// The initial search interval for the operating point search in the driver.
/// </summary>
public static MeterPerSquareSecond OperatingPointInitialSearchIntervalAccelerating = 0.1.SI<MeterPerSquareSecond>();
public static readonly MeterPerSquareSecond OperatingPointInitialSearchIntervalAccelerating =
0.1.SI<MeterPerSquareSecond>();
public static PerSecond EngineIdlingSearchInterval = 10.SI<PerSecond>();
public static readonly PerSecond EngineIdlingSearchInterval = 10.SI<PerSecond>();
public const int EngineSearchLoopThreshold = 100;
}
......
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