Commit a3c7aa95 authored by 陈家乐's avatar 陈家乐

🐞 fix:341掉线、373掉线或胎压id无效,450胎压外发0

parent 24f9d12e
...@@ -110,7 +110,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[]) ...@@ -110,7 +110,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
{ {
p450->Msg [ i ] = 0x0u; p450->Msg [ i ] = 0x0u;
} }
if(Get_TPMS_Front_Learn() != 2) if(CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x341_Msg_Count) == CAN_SIG_LOST\
|| Get_TPMS_Front_Learn() != 2
|| CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x373_Msg_Count) == CAN_SIG_LOST\
|| Get_Front_TPMS_ID_Vaild() == 0)
{ {
p450 -> Sig.Front_Pressure_TX_H = 0; p450 -> Sig.Front_Pressure_TX_H = 0;
p450 -> Sig.Front_Pressure_TX_L = 0; p450 -> Sig.Front_Pressure_TX_L = 0;
...@@ -120,7 +123,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[]) ...@@ -120,7 +123,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
p450 -> Sig.Front_Pressure_TX_H = ((Get_Front_TPMS_TX() + 146) >> 8) & 0xFF; p450 -> Sig.Front_Pressure_TX_H = ((Get_Front_TPMS_TX() + 146) >> 8) & 0xFF;
p450 -> Sig.Front_Pressure_TX_L = (Get_Front_TPMS_TX() + 146) & 0xFF; p450 -> Sig.Front_Pressure_TX_L = (Get_Front_TPMS_TX() + 146) & 0xFF;
} }
if(Get_TPMS_Rear_Learn() != 2) if(CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x341_Msg_Count) == CAN_SIG_LOST\
|| Get_TPMS_Rear_Learn() != 2
|| CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x373_Msg_Count) == CAN_SIG_LOST\
|| Get_Rear_TPMS_ID_Vaild() == 0)
{ {
p450 -> Sig.Rear_Pressure_TX_H = 0; p450 -> Sig.Rear_Pressure_TX_H = 0;
p450 -> Sig.Rear_Pressure_TX_L = 0; p450 -> Sig.Rear_Pressure_TX_L = 0;
......
  • 禅道问题48976 外发0x450胎压信号,仪表上电偶发前几帧外发0。上电后胎压学习状态会获取备份值

  • 55593 【天鹰TY200】【胎压外发】不发送任何胎压数值时,胎压应显示0psi

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