Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit c35fccef authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

commited forgotten fix for gear property in hybrid strategy

parent 1eabfdc8
No related merge requests found
......@@ -45,14 +45,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
protected override IResponse RequestDryRun(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outAngularVelocity, GearshiftPosition nextGear, HybridStrategyResponse cfg)
{
if (DataBus.VehicleInfo.VehicleStopped) {
TestPowertrain.Gearbox.Gear = Controller.ShiftStrategy.NextGear;
}
else if (PreviousState.GearboxEngaged) {
TestPowertrain.Gearbox.Gear = DataBus.GearboxInfo.Gear;
} else {
TestPowertrain.Gearbox.Gear = Controller.ShiftStrategy.NextGear;
}
TestPowertrain.Gearbox.Gear = (DataBus.VehicleInfo.VehicleStopped)
? NextGear
: (PreviousState.GearboxEngaged)
? CurrentGear
: NextGear;
TestPowertrain.Gearbox.Disengaged = !nextGear.Engaged;
TestPowertrain.Gearbox.DisengageGearbox = !nextGear.Engaged;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment