From 7fa438de0b74d6d64704021a0a826ad856c349c1 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 11 Nov 2015 12:19:05 +0100 Subject: [PATCH] switch to drive as next driving action when a halt-action is performed --- .../Models/SimulationComponent/Impl/DefaultDriverStrategy.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index 6ef60ea798..eee3a3addf 100644 --- a/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -83,6 +83,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public IResponse Request(Second absTime, Second dt, MeterPerSecond targetVelocity, Radian gradient) { DriverBehavior = DrivingBehavior.Halted; + CurrentDrivingMode = DrivingMode.DrivingModeDrive; return Driver.DrivingActionHalt(absTime, dt, targetVelocity, gradient); } -- GitLab