From e6e7e834153abfe142c0e16bf891bfae4c947616 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Fri, 15 Apr 2022 10:44:32 +0200 Subject: [PATCH] DefaultDriverStrategy: Removed unneeded code from previous solution attempts (hamstercode) --- .../SimulationComponent/Impl/DefaultDriverStrategy.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index bc19370298..3246c499db 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -1303,15 +1303,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl response = Driver.DrivingActionAccelerate(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed, gradient); debug.Add(new { a = "(8) Accelerate", response }); } else { - //try { - response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient); - debug.Add(new { a = "(9) Roll", response }); - //} catch (VectoException e) { - // debug.Add(new { a = "(10) Exception", e }); - // Log.Info("Got a VectoException {e}", e); - // response = Driver.DrivingActionCoast(absTime, ds, DriverStrategy.BrakeTrigger.NextTargetSpeed, gradient); - // debug.Add(new { a = "(11) Coast", response }); - //} + response = Driver.DrivingActionRoll(absTime, ds, targetVelocity, gradient); + debug.Add(new { a = "(9) Roll", response }); } switch (response) { -- GitLab