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
213e4beb
Commit
213e4beb
authored
8 months ago
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:54658 【豪进750TFT】【车速】车速数值显示车速换算错误四舍五入去掉
parent
e21755e6
master
Beijixing_DemoShow
LYK
ZJSTEST
dev
devlop
heyudong_dev
jinshuo
master_dev
release
shihao
wangyanan
wjl_devlop
wjw_dev
zhengping
2025年1月3日项目暂停节点
2024-8-18
1 merge request
!40
Zhengping
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed.c
+4
-4
No files found.
Firmware/Source/Application/Data_VSpeed.c
View file @
213e4beb
...
...
@@ -339,10 +339,10 @@ void Data_Vehicle_Speed_Processing_Service(void)
{
VSpeedCal
*=
105
;
VSpeedCal
/=
100
;
if
((
VSpeedCal
%
10
)
>=
5
)
{
VSpeedCal
+=
5
;
/* 四舍五入 */
}
//
if((VSpeedCal % 10) >= 5)
//
{
//
VSpeedCal += 5; /* 四舍五入 */
//
}
DataVSpeedDisp
=
(
uint16_t
)
VSpeedCal
;
}
else
...
...
This diff is collapsed.
Click to expand it.
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