ADM/GW/Debug_FLASH/src/Operation_Mode_Layer/Operation_Mode.c.060i.targetclone

537 lines
13 KiB
Plaintext

Emergency_Stop_Mode_Func.part.0 ()
{
<bb 4> [local count: 1073741824]:
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_Out_Lamp_BRAKE_CMD = 0;
# DEBUG BEGIN_STMT
GV_Out_Lamp_Hazard_CMD = 0;
# DEBUG BEGIN_STMT
GV_VCU_RC_Emergency_Stop = 0;
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 3;
<bb 3> [local count: 1073741824]:
return;
}
Operation_Mode_Func ()
{
unsigned char GV_Operation_Mode.43_1;
unsigned char GV_Operation_Mode.44_2;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
Operation_IDB_RWA ();
# DEBUG BEGIN_STMT
Vehicle_Environment ();
# DEBUG BEGIN_STMT
Operation_Mode_Check ();
# DEBUG BEGIN_STMT
GV_Operation_Mode.43_1 = GV_Operation_Mode;
if (GV_Operation_Mode.43_1 == 0)
goto <bb 3>; [33.00%]
else
goto <bb 4>; [67.00%]
<bb 3> [local count: 354334802]:
# DEBUG BEGIN_STMT
Autonomous_Mode_Func ();
<bb 4> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_Operation_Mode.44_2 = GV_Operation_Mode;
if (GV_Operation_Mode.44_2 == 1)
goto <bb 5>; [20.24%]
else
goto <bb 6>; [79.76%]
<bb 5> [local count: 217325345]:
# DEBUG BEGIN_STMT
Mannual_Mode_Func ();
goto <bb 10>; [100.00%]
<bb 6> [local count: 856416480]:
# DEBUG BEGIN_STMT
if (GV_Operation_Mode.44_2 == 2)
goto <bb 7>; [20.24%]
else
goto <bb 8>; [79.76%]
<bb 7> [local count: 173338695]:
# DEBUG BEGIN_STMT
Emergency_Stop_Mode_Func ();
goto <bb 10>; [100.00%]
<bb 8> [local count: 683077784]:
# DEBUG BEGIN_STMT
if (GV_Operation_Mode.44_2 == 3)
goto <bb 9>; [20.24%]
else
goto <bb 10>; [79.76%]
<bb 9> [local count: 138254943]:
# DEBUG BEGIN_STMT
Default_Mode_Func ();
<bb 10> [local count: 1073741824]:
return;
}
Vehicle_Environment ()
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_Env_384_EnvironmentTemperature = 0;
# DEBUG BEGIN_STMT
GV_Env_384_EnvironmentTemperatureValid = 0;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampDay = 21;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampHour = 0;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampMinute = 0;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampMonth = 6;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampSecond = 0;
# DEBUG BEGIN_STMT
GV_Env_384_TimestampYear = 24;
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
return;
}
Operation_IDB_RWA ()
{
float GV_VCU_TrqCmd.40_1;
long unsigned int _2;
long unsigned int GV_VCU_GearSelStat.41_3;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_VCU_TrqCmd.40_1 = GV_VCU_TrqCmd;
_2 = (long unsigned int) GV_VCU_TrqCmd.40_1;
GV_DriveTorqueCommand = _2;
# DEBUG BEGIN_STMT
GV_DriveTorqueCommandValid = 1;
# DEBUG BEGIN_STMT
GV_PowertrainMode = 1;
# DEBUG BEGIN_STMT
GV_VCU_GearSelStat.41_3 = GV_VCU_GearSelStat;
GV_GearPosition = GV_VCU_GearSelStat.41_3;
# DEBUG BEGIN_STMT
GV_RCU_PowertrainMode = 1;
# DEBUG BEGIN_STMT
GV_RCU_GearPosition = GV_VCU_GearSelStat.41_3;
# DEBUG BEGIN_STMT
GV_IDB_032_WakeUpCommand = 1;
# DEBUG BEGIN_STMT
GV_RCU_033_WakeUpCommand = 1;
# DEBUG BEGIN_STMT
GV_RWA_040_RackAngleCmdValid = 1;
# DEBUG BEGIN_STMT
GV_RWA2_040_RackAngleCmdValid = 1;
# DEBUG BEGIN_STMT
GV_RWA_310_ModeCommand = 1;
# DEBUG BEGIN_STMT
GV_RWA_310_WakeupCommand = 1;
# DEBUG BEGIN_STMT
GV_RWA2_310_ModeCommand = 0;
# DEBUG BEGIN_STMT
GV_RWA2_310_WakeupCommand = 0;
# DEBUG BEGIN_STMT
GV_RWS1_040_RackAngleCmdValid = 1;
# DEBUG BEGIN_STMT
GV_RWS1_310_WakeupCommand = 1;
# DEBUG BEGIN_STMT
GV_RWS1_310_ModeCommand = 1;
# DEBUG BEGIN_STMT
GV_RWS2_040_RackAngleCmdValid = 1;
# DEBUG BEGIN_STMT
GV_RWS2_310_WakeupCommand = 0;
# DEBUG BEGIN_STMT
GV_RWS2_310_ModeCommand = 0;
return;
}
Emergency_Stop_Mode_Func ()
{
short unsigned int EMEMERGNECY_BUTTEN.37_1;
long unsigned int GV_RC_Emergency_Stop.38_2;
long unsigned int GV_ACU_Emergency_Stop.39_3;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_Out_Lamp_BRAKE_CMD = 2;
# DEBUG BEGIN_STMT
GV_Out_Lamp_Hazard_CMD = 2;
# DEBUG BEGIN_STMT
GV_VCU_RC_Emergency_Stop = 1;
# DEBUG BEGIN_STMT
GV_VCU_TrqCmd = 0.0;
# DEBUG BEGIN_STMT
EMEMERGNECY_BUTTEN.37_1 = EMEMERGNECY_BUTTEN;
if (EMEMERGNECY_BUTTEN.37_1 == 0)
goto <bb 3>; [50.00%]
else
goto <bb 6>; [50.00%]
<bb 3> [local count: 536870913]:
GV_RC_Emergency_Stop.38_2 = GV_RC_Emergency_Stop;
if (GV_RC_Emergency_Stop.38_2 == 0)
goto <bb 4>; [50.00%]
else
goto <bb 6>; [50.00%]
<bb 4> [local count: 268435456]:
GV_ACU_Emergency_Stop.39_3 = GV_ACU_Emergency_Stop;
if (GV_ACU_Emergency_Stop.39_3 == 0)
goto <bb 5>; [50.00%]
else
goto <bb 6>; [50.00%]
<bb 5> [local count: 134217728]:
Emergency_Stop_Mode_Func.part.0 ();
<bb 6> [local count: 1073741824]:
return;
}
Mannual_Mode_Func ()
{
unsigned char GV_All_ECU_Ready_Flag.20_1;
unsigned char GV_Operation_Mode.21_2;
float GV_RC_RWA_RackAngleCommand.22_3;
float GV_RWA1_RackAngleFbk.23_4;
float GV_RC_BrakeTorqueCommand.24_5;
long unsigned int GV_RC_GearSelStat.25_6;
long unsigned int GV_Lamp_HMI1_CMD.26_7;
int GV_Lamp_HMI1_CMD.27_8;
long unsigned int GV_Lamp_HMI2_CMD.28_9;
int GV_Lamp_HMI2_CMD.29_10;
long unsigned int GV_Lamp_HMI3_CMD.30_11;
int GV_Lamp_HMI3_CMD.31_12;
long unsigned int GV_Lamp_HMI4_CMD.32_13;
int GV_Lamp_HMI4_CMD.33_14;
long unsigned int GV_Lamp_HMI5_CMD.34_15;
int GV_Lamp_HMI5_CMD.35_16;
long unsigned int GV_RC_VX_Limit.36_17;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_All_ECU_Ready_Flag.20_1 = GV_All_ECU_Ready_Flag;
if (GV_All_ECU_Ready_Flag.20_1 == 1)
goto <bb 3>; [34.00%]
else
goto <bb 5>; [66.00%]
<bb 3> [local count: 365072220]:
GV_Operation_Mode.21_2 = GV_Operation_Mode;
if (GV_Operation_Mode.21_2 == 1)
goto <bb 4>; [20.24%]
else
goto <bb 5>; [79.76%]
<bb 4> [local count: 73890617]:
# DEBUG BEGIN_STMT
HV_ON_FUNC ();
<bb 5> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_RC_RWA_RackAngleCommand.22_3 = GV_RC_RWA_RackAngleCommand;
GV_MASTER_RWA_RackAngleCommand = GV_RC_RWA_RackAngleCommand.22_3;
# DEBUG BEGIN_STMT
RC_Motor_Logic ();
# DEBUG BEGIN_STMT
GV_RWA1_RackAngleFbk.23_4 = GV_RWA1_RackAngleFbk;
GV_VCU_RWA_Rack_Fbk = GV_RWA1_RackAngleFbk.23_4;
# DEBUG BEGIN_STMT
GV_RC_BrakeTorqueCommand.24_5 = GV_RC_BrakeTorqueCommand;
GV_MASTER_CLMAP_FORCE = GV_RC_BrakeTorqueCommand.24_5;
# DEBUG BEGIN_STMT
GV_RC_GearSelStat.25_6 = GV_RC_GearSelStat;
GV_VCU_GearSelStat = GV_RC_GearSelStat.25_6;
# DEBUG BEGIN_STMT
GV_Lamp_HMI1_CMD.26_7 = GV_Lamp_HMI1_CMD;
GV_Lamp_HMI1_CMD.27_8 = (int) GV_Lamp_HMI1_CMD.26_7;
Lamp_HMI1_CMD (GV_Lamp_HMI1_CMD.27_8);
# DEBUG BEGIN_STMT
GV_Lamp_HMI2_CMD.28_9 = GV_Lamp_HMI2_CMD;
GV_Lamp_HMI2_CMD.29_10 = (int) GV_Lamp_HMI2_CMD.28_9;
Lamp_HMI2_CMD (GV_Lamp_HMI2_CMD.29_10);
# DEBUG BEGIN_STMT
GV_Lamp_HMI3_CMD.30_11 = GV_Lamp_HMI3_CMD;
GV_Lamp_HMI3_CMD.31_12 = (int) GV_Lamp_HMI3_CMD.30_11;
Lamp_HMI3_CMD (GV_Lamp_HMI3_CMD.31_12);
# DEBUG BEGIN_STMT
GV_Lamp_HMI4_CMD.32_13 = GV_Lamp_HMI4_CMD;
GV_Lamp_HMI4_CMD.33_14 = (int) GV_Lamp_HMI4_CMD.32_13;
Lamp_HMI4_CMD (GV_Lamp_HMI4_CMD.33_14);
# DEBUG BEGIN_STMT
GV_Lamp_HMI5_CMD.34_15 = GV_Lamp_HMI5_CMD;
GV_Lamp_HMI5_CMD.35_16 = (int) GV_Lamp_HMI5_CMD.34_15;
Lamp_HMI5_CMD (GV_Lamp_HMI5_CMD.35_16);
# DEBUG BEGIN_STMT
GV_VCU_RC_Emergency_Stop = 0;
# DEBUG BEGIN_STMT
GV_RC_VX_Limit.36_17 = GV_RC_VX_Limit;
GV_VCU_Vx_Limit = GV_RC_VX_Limit.36_17;
return;
}
Autonomous_Mode_Func ()
{
unsigned char GV_All_ECU_Ready_Flag.12_1;
unsigned char GV_Operation_Mode.13_2;
float GV_ACU_RWA_cmd_deg.14_3;
float GV_ACU_RWS_cmd_deg.15_4;
long unsigned int GV_VCU_GearSelStat.16_5;
long unsigned int GV_ACU_VCU_GearPos.18_6;
float GV_ACU_BrakeTorqueCommand.19_7;
<bb 2> [local count: 1073741823]:
# DEBUG BEGIN_STMT
GV_All_ECU_Ready_Flag.12_1 = GV_All_ECU_Ready_Flag;
if (GV_All_ECU_Ready_Flag.12_1 == 1)
goto <bb 3>; [34.00%]
else
goto <bb 5>; [66.00%]
<bb 3> [local count: 365072220]:
GV_Operation_Mode.13_2 = GV_Operation_Mode;
if (GV_Operation_Mode.13_2 == 0)
goto <bb 4>; [33.00%]
else
goto <bb 5>; [67.00%]
<bb 4> [local count: 120473832]:
# DEBUG BEGIN_STMT
HV_ON_FUNC ();
<bb 5> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_ACU_RWA_cmd_deg.14_3 = GV_ACU_RWA_cmd_deg;
GV_MASTER_RWA_RackAngleCommand = GV_ACU_RWA_cmd_deg.14_3;
# DEBUG BEGIN_STMT
GV_ACU_RWS_cmd_deg.15_4 = GV_ACU_RWS_cmd_deg;
GV_MASTER_RWS_RackAngleCommand = GV_ACU_RWS_cmd_deg.15_4;
# DEBUG BEGIN_STMT
GV_VCU_GearSelStat.16_5 = GV_VCU_GearSelStat;
if (GV_VCU_GearSelStat.16_5 == 1)
goto <bb 7>; [20.24%]
else
goto <bb 6>; [79.76%]
<bb 6> [local count: 856416479]:
if (GV_VCU_GearSelStat.16_5 == 3)
goto <bb 7>; [34.00%]
else
goto <bb 8>; [66.00%]
<bb 7> [local count: 508506948]:
# DEBUG BEGIN_STMT
ACU_Motor_Logic ();
<bb 8> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_VCU_RC_Emergency_Stop = 0;
# DEBUG BEGIN_STMT
GV_ACU_VCU_GearPos.18_6 = GV_ACU_VCU_GearPos;
GV_VCU_GearSelStat = GV_ACU_VCU_GearPos.18_6;
# DEBUG BEGIN_STMT
GV_ACU_BrakeTorqueCommand.19_7 = GV_ACU_BrakeTorqueCommand;
GV_MASTER_CLMAP_FORCE = GV_ACU_BrakeTorqueCommand.19_7;
return;
}
Default_Mode_Func ()
{
short unsigned int EMEMERGNECY_BUTTEN.10_1;
long unsigned int GV_RC_Emergency_Stop.11_2;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_VCU_TrqCmd = 0.0;
# DEBUG BEGIN_STMT
GV_MASTER_RWA_RackAngleCommand = 0.0;
# DEBUG BEGIN_STMT
GV_MASTER_RWS_RackAngleCommand = 0.0;
# DEBUG BEGIN_STMT
HV_OFF_FUNC ();
# DEBUG BEGIN_STMT
EMEMERGNECY_BUTTEN.10_1 = EMEMERGNECY_BUTTEN;
if (EMEMERGNECY_BUTTEN.10_1 == 0)
goto <bb 3>; [50.00%]
else
goto <bb 5>; [50.00%]
<bb 3> [local count: 536870913]:
GV_RC_Emergency_Stop.11_2 = GV_RC_Emergency_Stop;
if (GV_RC_Emergency_Stop.11_2 == 0)
goto <bb 4>; [50.00%]
else
goto <bb 5>; [50.00%]
<bb 4> [local count: 268435456]:
# DEBUG BEGIN_STMT
GV_Lamp_BRAKE_CMD = 0;
# DEBUG BEGIN_STMT
GV_Lamp_Hazard_CMD = 0;
# DEBUG BEGIN_STMT
GV_RC_Lamp_Hazard_CMD = 0;
# DEBUG BEGIN_STMT
GV_RC_Lamp_BRAKE_CMD = 0;
<bb 5> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_VCU_RC_Emergency_Stop = 0;
return;
}
Operation_Mode_Check ()
{
long unsigned int GV_ACU_Drive_mode.0_1;
long unsigned int GV_RC_Drive_Mode.1_2;
long unsigned int GV_ACU_Emergency_Stop.4_3;
long unsigned int GV_RC_Emergency_Stop.5_4;
short unsigned int EMEMERGNECY_BUTTEN.6_5;
long unsigned int GV_ACU_Emergency_Stop.7_6;
long unsigned int GV_VCU_Drive_Mode.8_7;
unsigned char _8;
unsigned char GV_Charging_Status_val.9_9;
unsigned char _10;
<bb 2> [local count: 1073741823]:
# DEBUG BEGIN_STMT
GV_ACU_Drive_mode.0_1 = GV_ACU_Drive_mode;
if (GV_ACU_Drive_mode.0_1 == 1)
goto <bb 3>; [34.00%]
else
goto <bb 4>; [66.00%]
<bb 3> [local count: 365072220]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 0;
goto <bb 10>; [100.00%]
<bb 4> [local count: 708669604]:
# DEBUG BEGIN_STMT
GV_RC_Drive_Mode.1_2 = GV_RC_Drive_Mode;
if (GV_RC_Drive_Mode.1_2 == 1)
goto <bb 5>; [34.00%]
else
goto <bb 6>; [66.00%]
<bb 5> [local count: 240947665]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 1;
goto <bb 10>; [100.00%]
<bb 6> [local count: 467721938]:
# DEBUG BEGIN_STMT
if (GV_ACU_Drive_mode.0_1 == 0)
goto <bb 8>; [50.00%]
else
goto <bb 7>; [50.00%]
<bb 7> [local count: 233860969]:
if (GV_RC_Drive_Mode.1_2 == 0)
goto <bb 8>; [50.00%]
else
goto <bb 10>; [50.00%]
<bb 8> [local count: 350791454]:
GV_ACU_Emergency_Stop.4_3 = GV_ACU_Emergency_Stop;
if (GV_ACU_Emergency_Stop.4_3 != 1)
goto <bb 9>; [66.00%]
else
goto <bb 10>; [34.00%]
<bb 9> [local count: 231522359]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 3;
<bb 10> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_RC_Emergency_Stop.5_4 = GV_RC_Emergency_Stop;
if (GV_RC_Emergency_Stop.5_4 == 1)
goto <bb 11>; [34.00%]
else
goto <bb 12>; [66.00%]
<bb 11> [local count: 365072221]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 2;
<bb 12> [local count: 1073741824]:
# DEBUG BEGIN_STMT
EMEMERGNECY_BUTTEN.6_5 = EMEMERGNECY_BUTTEN;
if (EMEMERGNECY_BUTTEN.6_5 == 1)
goto <bb 13>; [34.00%]
else
goto <bb 14>; [66.00%]
<bb 13> [local count: 365072221]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 2;
<bb 14> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_ACU_Emergency_Stop.7_6 = GV_ACU_Emergency_Stop;
if (GV_ACU_Emergency_Stop.7_6 == 1)
goto <bb 15>; [34.00%]
else
goto <bb 16>; [66.00%]
<bb 15> [local count: 365072221]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode = 2;
<bb 16> [local count: 1073741824]:
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode.8_7 = GV_VCU_Drive_Mode;
_8 = (unsigned char) GV_VCU_Drive_Mode.8_7;
GV_Operation_Mode = _8;
# DEBUG BEGIN_STMT
GV_Charging_Status_val.9_9 = GV_Charging_Status_val;
_10 = GV_Charging_Status_val.9_9 + 255;
if (_10 <= 1)
goto <bb 17>; [41.00%]
else
goto <bb 18>; [59.00%]
<bb 17> [local count: 440234148]:
# DEBUG BEGIN_STMT
GV_Operation_Mode = 0;
<bb 18> [local count: 1073741824]:
return;
}