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

Skip to content
Snippets Groups Projects
Commit 58e665cc authored by Michael KRISPER's avatar Michael KRISPER
Browse files

HybridStrategy HandleCoastAction: Update CombustionEngineOn flag accordingly...

HybridStrategy HandleCoastAction: Update CombustionEngineOn flag accordingly to the ICEoff flag (after setting it).
parent e57684b2
No related branches found
No related tags found
No related merge requests found
......@@ -1446,13 +1446,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
var result = ResponseEmOff;
if (DataBus.DriverInfo.PCCState.IsOneOf(PCCStates.UseCase1, PCCStates.UseCase2)) {
result.ICEOff = AllowICEOff(absTime);
result.Setting.CombustionEngineOn = !result.ICEOff;
if (DataBus.PowertrainInfo.ElectricMotorPositions.Contains(PowertrainPosition.HybridP1)) {
// special logic for HybridP1 (VECTO-1493)
result.Setting.GearboxInNeutral = true;
result.ICEOff &= ModelData.VehicleData.ADAS.EngineStopStart;
}
result.Setting.CombustionEngineOn = !result.ICEOff;
}
eval.Add(result);
}
......
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