From b6940c3e0540bd34f5a837a9579ea0f394e887a8 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Mon, 10 Dec 2018 09:27:18 +0100 Subject: [PATCH] allow switching (compile time) between old and new TCU --- .../VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs b/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs index fcc5ede320..6be034f273 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs @@ -385,9 +385,14 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl IShiftStrategy strategy; switch (runData.GearboxData.Type) { case GearboxType.AMT: +#if CLASSIC_TCU + strategy = new AMTShiftStrategy(runData, container); + +#else strategy = runData.GearshiftParameters == null ? (IShiftStrategy)new AMTShiftStrategy(runData, container) : new AMTShiftStrategyV2(runData, container); +#endif break; case GearboxType.MT: strategy = new MTShiftStrategy(runData, container); -- GitLab