diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs index 9d7d8b0384ace8507d0039d96a29c5bac189eebc..fc578cd31ab765fac2a72d0099579a352229a91b 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs @@ -611,14 +611,17 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies public virtual IHybridStrategyResponse Request(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outAngularVelocity, bool dryRun) { GearshiftPosition nextGear; - if (DataBus.VehicleInfo.VehicleStopped) + if (DataBus.VehicleInfo.VehicleStopped) { nextGear = Controller.ShiftStrategy.NextGear; - else if (!DataBus.GearboxInfo.GearEngaged(absTime)) + } + else if (!DataBus.GearboxInfo.GearEngaged(absTime)) { nextGear = Controller.ShiftStrategy.NextGear; - else if (PreviousState.GearboxEngaged) + } + else if (PreviousState.GearboxEngaged) { nextGear = DataBus.GearboxInfo.Gear; - else + } else { nextGear = Controller.ShiftStrategy.NextGear; + } if (DataBus.DriverInfo.DrivingAction == DrivingAction.Accelerate && StrategyParameters.MaxPropulsionTorque?.GetVECTOValueOrDefault(nextGear) != null && DataBus.GearboxInfo.TCLocked) {