Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
cdb8ccba
Commit
cdb8ccba
authored
Aug 31, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:【56247】车速英制单位
parent
768639af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+19
-12
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
cdb8ccba
...
...
@@ -3717,20 +3717,23 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
}
}
/*车速显示函数*/
static
void
AMT630H_GUI_VSpeed
(
uint16_t
VSpeed
,
uint8_t
Unit
)
static
void
AMT630H_GUI_VSpeed
(
uint16_t
VSpeed
)
{
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0592_617_271
);
if
(
Unit
==
0
)
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0593_889_310
);
/*单位 km/h */
}
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
593_889_310
);
/*单位 km*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
928_894_310
);
/*单位 mph/h */
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0928_894_310
);
/*单位 mph */
;
}
/*数据处理*/
...
...
@@ -3783,13 +3786,17 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed,uint8_t Unit)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0700_617_271
);
if
(
Unit
==
0
)
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0701_889_310
);
/*单位 km/h */
}
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0929_894_310
);
/*单位 mph/h */
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0929_894_310
);
/*单位 mile/h */
;
}
/*数据处理*/
...
...
@@ -4012,11 +4019,11 @@ void AMT630H_GUI_BACKGRAND()
}
if
(
Get_VechileSpeedValid
()
==
1
)
{
AMT630H_GUI_VSpeed
(
VechileSpeed
,
Get_Dis_Unit
()
);
AMT630H_GUI_VSpeed
(
VechileSpeed
);
}
else
{
AMT630H_GUI_VSpeed
(
0
,
0
);
AMT630H_GUI_VSpeed
(
0
);
}
/*转速*/
if
(
Get_EngineValid
()
==
1
)
...
...
@@ -4117,7 +4124,7 @@ void AMT630H_GUI_BACKGRAND_SelfCheck()
/*车速自检*/
if
(
g_u16vspeednumberup
<=
200
)
{
AMT630H_GUI_VSpeed
(
g_u16vspeednumberup
,
Get_Dis_Unit
()
);
/*初始化g_u16vspeednumberup = 0*/
AMT630H_GUI_VSpeed
(
g_u16vspeednumberup
);
/*初始化g_u16vspeednumberup = 0*/
g_u16vspeednumberup
+=
8
;
}
else
...
...
@@ -4125,7 +4132,7 @@ void AMT630H_GUI_BACKGRAND_SelfCheck()
if
(
g_u16vspeednumberdown
>
0
)
{
g_u16vspeednumberdown
-=
8
;
/*初始化g_u16vspeednumberup=200*/
AMT630H_GUI_VSpeed
(
g_u16vspeednumberdown
,
Get_Dis_Unit
()
);
/*if g_u16vspeednumberup=0 车速自检结束*/
AMT630H_GUI_VSpeed
(
g_u16vspeednumberdown
);
/*if g_u16vspeednumberup=0 车速自检结束*/
}
else
{
...
...
@@ -4174,7 +4181,7 @@ void AMT630H_GUI_BACKGRAND_SelfCheck()
}
if
(
g_u16vspeednumberdown
==
0
)
{
AMT630H_GUI_VSpeed
(
g_u16vspeednumberdown
,
Get_Dis_Unit
()
);
AMT630H_GUI_VSpeed
(
g_u16vspeednumberdown
);
}
if
(
g_u16espeednumberdown
==
0
)
{
...
...
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