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 46bcdff3 authored by Harald Martini's avatar Harald Martini
Browse files

check if gearbox is null in HandlePCC

parent cc8bf68f
No related branches found
No related tags found
No related merge requests found
......@@ -328,10 +328,15 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
switch (ADAS.EcoRoll) {
case EcoRollType.None: break;
case EcoRollType.WithoutEngineStop:
if (DataBus.GearboxCtl != null) {
DataBus.GearboxCtl.DisengageGearbox = true;
}
break;
case EcoRollType.WithEngineStop:
if (DataBus.GearboxCtl != null) {
DataBus.GearboxCtl.DisengageGearbox = true;
}
if (DataBus.EngineCtl != null) {
DataBus.EngineCtl.CombustionEngineOn = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment