Commit bf81d2a2 authored by hu's avatar hu

修改DPD输出超范围延时显示

parent 45e89c2d
......@@ -42,6 +42,7 @@ uint8_t DTCNumTime = 0u;
static uint8_t GUIDTCNumDis = 0u;
uint8_t DTCDispNum;
uint32_t DTNum = 0u;
uint8_t DPD_Display_Time;
_Display_State_Flag State_Flag; /*0-常态 1-小于0 2-小于1000 3-无此功能*/
_TPMS TPMS_Matching;
......@@ -291,6 +292,8 @@ void GUI_Display_Value_Init(void)
Display_DTC[1u].Disp_Mod_Menu_Cbk = GUI_BG_DTCSCR_Display; /*SRC故障*/
Display_DTC[2u].Disp_Mod_Menu_Cbk = GUI_BG_DTCAMT_Display; /*AMT故障*/
Display_DTC[3u].Disp_Mod_Menu_Cbk = GUI_Display_NULL; /*无故障*/
DPD_Display_Time = 0u;
}
/*-------------------------------------------------------------------------
......@@ -1763,6 +1766,19 @@ void GUI_DPD_Display_Display(uint8_t Mode)
value = Get_ID_18FED900_Sig_DPF_storage();
value = value * 20u / 5u;
// Get_ID_18FED900_Sig_DPF_Regeneration_Status();/*8 4-5*/
if (value > 1000u)
{
if (DPD_Display_Time < 200)
{
DPD_Display_Time ++;
}
if (DPD_Display_Time <= 20u)
{
return ;
}
}
if (1)
{
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_duijiliang, GUI_BLENDMODE_SRC_OVER); /*DPD堆积绿*/
......@@ -1774,25 +1790,30 @@ void GUI_DPD_Display_Display(uint8_t Mode)
if (value <= 165u)
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, SpriteSize, GUI_BLENDMODE_SRC_OVER);
}
else if ((value >= 166u) && (value <= 333u))
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
}
else if ((value >= 334u) && (value <= 499u))
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
}
else if ((value >= 500u) && (value <= 666u))
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
}
else if ((value >= 667u) && (value <= 833u))
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
......@@ -1800,6 +1821,7 @@ void GUI_DPD_Display_Display(uint8_t Mode)
}
else if ((value >= 834u) && (value <= 1000u))
{
DPD_Display_Time = 0;
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge1, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge2, GUI_BLENDMODE_SRC_OVER);
GUI_General_Display(MultiPurpose_Sprite, CN_DPD_zouge3, GUI_BLENDMODE_SRC_OVER);
......
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