Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
bf81d2a2
Commit
bf81d2a2
authored
May 13, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改DPD输出超范围延时显示
parent
45e89c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
GUI.c
source/Application/Graphic/GUI/GUI.c
+22
-0
No files found.
source/Application/Graphic/GUI/GUI.c
View file @
bf81d2a2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment