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
32274280
Commit
32274280
authored
Jul 05, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:车速修改最大值和实际车速显示
parent
4f36d69e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed.c
+9
-9
No files found.
Firmware/Source/Application/Data_VSpeed.c
View file @
32274280
...
...
@@ -253,8 +253,8 @@ void Data_Vehicle_Speed_Processing_Service(void)
else
{
DataVSPeedDamping
.
Speed
+=
Delta
;
if
(
DataVSPeedDamping
.
Speed
>
1
20
0
)
DataVSPeedDamping
.
Speed
=
1
20
0
;
if
(
DataVSPeedDamping
.
Speed
>
1
99
0
)
DataVSPeedDamping
.
Speed
=
1
99
0
;
}
}
else
// 显示值正在向实际值减小,则维持当前方向调节增加速度
...
...
@@ -302,8 +302,8 @@ void Data_Vehicle_Speed_Processing_Service(void)
else
{
DataVSPeedDamping
.
Speed
+=
Delta
;
if
(
DataVSPeedDamping
.
Speed
>
1
20
0
)
DataVSPeedDamping
.
Speed
=
1
20
0
;
if
(
DataVSPeedDamping
.
Speed
>
1
99
0
)
DataVSPeedDamping
.
Speed
=
1
99
0
;
}
}
else
// 显示值当前是减小方向
...
...
@@ -338,7 +338,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
if
(
DataVSpeedValid
)
{
VSpeedCal
*=
10
8
;
VSpeedCal
*=
10
5
;
VSpeedCal
/=
100
;
if
((
VSpeedCal
%
10
)
>=
5
)
{
...
...
@@ -368,18 +368,18 @@ uint16_t Get_DispVechileSpeed(void)
uint16_t
Vspeed
=
0
;
if
(
Get_Dis_Unit
()
==
0
)
/* KM */
{
if
(
DataVSpeedDisp
>=
1
20
0
)
if
(
DataVSpeedDisp
>=
1
99
0
)
{
DataVSpeedDisp
=
1
20
0
;
DataVSpeedDisp
=
1
99
0
;
}
Vspeed
=
DataVSpeedDisp
;
}
else
//if (Get_Dis_Unit() == 1) /* MILE */
{
Vspeed
=
Data_Km_To_Mile
(
DataVSpeedDisp
);
if
(
Vspeed
>=
75
0
)
if
(
Vspeed
>=
123
0
)
{
Vspeed
=
75
0
;
Vspeed
=
123
0
;
}
}
// else
...
...
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