From 6c0ae32b245e8a618b14da4203e0cc5b6dedc4e6 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Thu, 14 Apr 2022 17:30:12 +0200 Subject: [PATCH] formatting --- .../SimulationComponent/Strategies/HybridStrategy.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs index 9d7d8b0384..fc578cd31a 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) { -- GitLab