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

Skip to content
Snippets Groups Projects
Commit a32a6a5e authored by Michael KRISPER's avatar Michael KRISPER
Browse files

finished report

parent d2f5d20f
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,8 @@ namespace TUGraz.VectoCore.Configuration
public static Meter DriverActionDistanceTolerance = 0.25.SI<Meter>();
public static double VehicleSpeedTolerance = 1e-3;
/// <summary>
/// The initial search interval for the operating point search in the driver.
/// </summary>
......
......@@ -17,7 +17,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
protected override IResponse DoSimulationStep()
{
// estimate distance to be traveled within the next TargetTimeInterval
var ds = Container.VehicleSpeed.IsEqual(0)
var ds = Container.VehicleSpeed.IsEqual(0, Constants.SimulationSettings.VehicleSpeedTolerance)
? Constants.SimulationSettings.DriveOffDistance
: Constants.SimulationSettings.TargetTimeInterval * Container.VehicleSpeed;
......
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