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

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

allow switching (compile time) between old and new TCU

parent 925b3cac
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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