Commit 59ddc9a5 authored by 时昊's avatar 时昊

上电后,只要有信号掉线,10s内灯不亮,10后黄灯常亮

parent abdaeaa9
......@@ -1745,9 +1745,27 @@ Tellib_uint16_t LED_LDWS_Lamp_Judge(void)
if (Get_NodeConfig_LWDS() == 1)
{
if((( CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can18FE5BE8_Msg_Count) == CAN_SIG_LOST )||
( CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can10F007E8_Msg_Count) == CAN_SIG_LOST ))&&(Common_GetIgnOnTime( ) >= 10000))//故障处理,整车上电后10S内屏蔽该状态
( CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can10F007E8_Msg_Count) == CAN_SIG_LOST )||
(CanReceive.Can_10F007E8 != 1)||(CanReceive.Can_18FE5BE8 != 1)))
{
res = 1u;//黄亮
if( CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can18FE5BE8_Msg_Count) == CAN_SIG_LOST )
{
CanReceive.Can_18FE5BE8 = 0;
}
if( CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_can10F007E8_Msg_Count) == CAN_SIG_LOST )
{
CanReceive.Can_10F007E8 = 0;
}
if(Common_GetIgnOnTime( ) >= 10000)//故障处理,整车上电后10S内屏蔽该状态
{
res = 1u;//黄亮
}
else
{
res = 0u;
}
}
else
{
......
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