Commit 3f1bf8f5 authored by 梁百峰's avatar 梁百峰

🐞 fix:增加倒车雷达信号在线才可以触发倒车雷达报警

parent 7e169e05
...@@ -108,8 +108,10 @@ void Sound_Alarm_Trigger_RADAR(void) ...@@ -108,8 +108,10 @@ void Sound_Alarm_Trigger_RADAR(void)
{ {
if ( SYS_OPR_STAT_IGN_ON ) if ( SYS_OPR_STAT_IGN_ON )
{ {
if ( Get_CAN_CH0_ID_10FF1021_Sig_ReverseSts( ) == 1U ) if ( Get_CAN_CH0_ID_10FF1021_Sig_ReverseSts( ) == 1U \
&& (CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can18FFB078_Msg_Count) != CAN_SIG_LOST))
{ {
uint16_t u16SdRadar = 0; uint16_t u16SdRadar = 0;
if ( Get_CAN_CH0_ID_18FFB078_Sig_PAM_Voice( ) == 5U ) if ( Get_CAN_CH0_ID_18FFB078_Sig_PAM_Voice( ) == 5U )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment