mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
ver 26.03.03.1
- 함수명 수정 : CheckSystem → CheckIgnition - 함수 위치 수정 : RcRequestCheck 함수 위치 수정 : System_Check.c → Drive_Mode.c
This commit is contained in:
parent
7215b67f45
commit
3031743220
@ -20,7 +20,7 @@ void ECU3_KATECH_Logic_init(void)
|
|||||||
|
|
||||||
void ECU3_KATECH_Logic_2ms(void)
|
void ECU3_KATECH_Logic_2ms(void)
|
||||||
{
|
{
|
||||||
CheckSystem();
|
CheckIgnition();
|
||||||
/* Input_Data_Set_Logic();
|
/* Input_Data_Set_Logic();
|
||||||
ADM_Integrated_Logic_step();
|
ADM_Integrated_Logic_step();
|
||||||
Output_Data_Set_Logic();*/
|
Output_Data_Set_Logic();*/
|
||||||
|
|||||||
@ -181,12 +181,6 @@ void ECU_check(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RcRequestCheck(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void No_signal_RC(void){
|
void No_signal_RC(void){
|
||||||
// GV_RC_VCU_counter1_CHECK = 260 <20><><EFBFBD><EFBFBD> <20>ʱ GV_RC_VCU_counter1<72><31> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ȸ<><C8B8>
|
// GV_RC_VCU_counter1_CHECK = 260 <20><><EFBFBD><EFBFBD> <20>ʱ GV_RC_VCU_counter1<72><31> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ȸ<><C8B8>
|
||||||
|
|||||||
@ -15,8 +15,6 @@ extern void RWA1_Arc_check(void);
|
|||||||
extern void RWA2_Arc_check(void);
|
extern void RWA2_Arc_check(void);
|
||||||
extern void ECU_check(void);
|
extern void ECU_check(void);
|
||||||
|
|
||||||
extern void RcRequestCheck(void);
|
|
||||||
|
|
||||||
extern void No_signal_RC(void);
|
extern void No_signal_RC(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -5,11 +5,13 @@
|
|||||||
static inline bool IsStopCondition(void){return (GV_VCU_Vx_Fbk < 1.);}
|
static inline bool IsStopCondition(void){return (GV_VCU_Vx_Fbk < 1.);}
|
||||||
static inline RcModeReq_e GetRcReq(void){return (RcModeReq_e)GV_RC_ModeReq;}
|
static inline RcModeReq_e GetRcReq(void){return (RcModeReq_e)GV_RC_ModeReq;}
|
||||||
static inline bool GetAcuReq(void){return (GV_ACU_Drive_mode == 1);}
|
static inline bool GetAcuReq(void){return (GV_ACU_Drive_mode == 1);}
|
||||||
|
static inline void SetRcReq(RcModeReq_e req){GV_RC_ModeReq = (uint8_t)req;}
|
||||||
static inline void SetHandoverPhase(HandoverPhase_e phase){GV_VCU_HandoverPhase = (uint8_t)phase;}
|
static inline void SetHandoverPhase(HandoverPhase_e phase){GV_VCU_HandoverPhase = (uint8_t)phase;}
|
||||||
static inline void setEmergencyCause(EmergencyCause_e cause){GV_VCU_EmergencyCause = (uint8_t)cause;}
|
static inline void setEmergencyCause(EmergencyCause_e cause){GV_VCU_EmergencyCause = (uint8_t)cause;}
|
||||||
|
|
||||||
|
static bool s_rcAutoReqTimeout = false;
|
||||||
|
|
||||||
void CheckSystem(void)
|
void CheckIgnition(void)
|
||||||
{
|
{
|
||||||
CheckSystemFault();
|
CheckSystemFault();
|
||||||
|
|
||||||
@ -124,6 +126,7 @@ void CheckDriveMode(void)
|
|||||||
|
|
||||||
bool acuWaitOn = false;
|
bool acuWaitOn = false;
|
||||||
|
|
||||||
|
RcRequestCheck();
|
||||||
|
|
||||||
if(isEmergency)
|
if(isEmergency)
|
||||||
{
|
{
|
||||||
@ -153,6 +156,8 @@ void CheckDriveMode(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
RcRequestCheck();
|
||||||
|
|
||||||
const DriveMode_e curMode = (DriveMode_e)GV_VCU_Drive_Mode;
|
const DriveMode_e curMode = (DriveMode_e)GV_VCU_Drive_Mode;
|
||||||
DriveMode_e nextMode = curMode;
|
DriveMode_e nextMode = curMode;
|
||||||
HandoverPhase_e nextPhase = HO_NONE;
|
HandoverPhase_e nextPhase = HO_NONE;
|
||||||
@ -259,7 +264,10 @@ void CheckDriveMode(void)
|
|||||||
acuWaitOn = true;
|
acuWaitOn = true;
|
||||||
if (Time_GetAutoOnWaitSec() >= 30U)
|
if (Time_GetAutoOnWaitSec() >= 30U)
|
||||||
{
|
{
|
||||||
|
s_rcAutoReqTimeout = true;
|
||||||
|
SetRcReq(RC_REQ_NONE);
|
||||||
nextPhase = HO_HOLD;
|
nextPhase = HO_HOLD;
|
||||||
|
acuWaitOn = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -312,6 +320,25 @@ void CheckDriveMode(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void RcRequestCheck(void)
|
||||||
|
{
|
||||||
|
if (GV_RC_ACU_Drive_Mode == 1 && GV_RC_Drive_Mode == 1)
|
||||||
|
{
|
||||||
|
if (s_rcAutoReqTimeout)
|
||||||
|
{
|
||||||
|
SetRcReq(RC_REQ_NONE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (GV_RC_ACU_Drive_Mode == 1)
|
||||||
|
GV_RC_ModeReq = RC_REQ_AUTO;
|
||||||
|
else if (GV_RC_Drive_Mode == 1)
|
||||||
|
GV_RC_ModeReq = RC_REQ_MANUAL;
|
||||||
|
else GV_RC_ModeReq = RC_REQ_DEFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*============================== Fault Check ==============================*/
|
/*============================== Fault Check ==============================*/
|
||||||
void CheckSystemFault(void)
|
void CheckSystemFault(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -82,9 +82,10 @@ typedef enum
|
|||||||
EMG_HO_ABORTED // Handover aborted (e.g. ACU fault during handover)
|
EMG_HO_ABORTED // Handover aborted (e.g. ACU fault during handover)
|
||||||
}EmergencyCause_e;
|
}EmergencyCause_e;
|
||||||
|
|
||||||
extern void CheckSystem(void);
|
extern void CheckIgnition(void);
|
||||||
extern void ExecuteDriveMode(void);
|
extern void ExecuteDriveMode(void);
|
||||||
extern void CheckDriveMode(void);
|
extern void CheckDriveMode(void);
|
||||||
|
extern void RcRequestCheck(void);
|
||||||
|
|
||||||
extern void CheckSystemFault(void);
|
extern void CheckSystemFault(void);
|
||||||
extern void ExecuteACUMode(void); //RidarFlux
|
extern void ExecuteACUMode(void); //RidarFlux
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
void SET_SW_VER(void)
|
void SET_SW_VER(void)
|
||||||
{
|
{
|
||||||
GV_YEAR = 26;
|
GV_YEAR = 26;
|
||||||
GV_Month = 2;
|
GV_Month = 3;
|
||||||
GV_Day = 26;
|
GV_Day = 3;
|
||||||
GV_Ver = 2;
|
GV_Ver = 1;
|
||||||
GV_CAR_NUM = 240623;
|
GV_CAR_NUM = 240623;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user