Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
a8857eee
Commit
a8857eee
authored
Mar 03, 2025
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:107437 车速自检从0开始自检
parent
171bcf65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+8
-1
No files found.
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
a8857eee
...
...
@@ -4539,6 +4539,7 @@ void Checkself_SEG_Display(void)
uint8_t
min
=
0
;
uint32_t
ODO
=
0
;
uint32_t
Mileage
=
0
;
uint16_t
speedCount
=
0
;
if
(
Common_GetIgnOnTime
()
>=
200
)
{
...
...
@@ -4572,7 +4573,13 @@ void Checkself_SEG_Display(void)
Fuel
=
Checkself_SEG_step
/
5u
;
collant
=
100
+
((
Checkself_SEG_step
/
3
)
*
11
);
Espeed
=
(
Checkself_SEG_step
*
5
/
6
)
*
500
;
Vspeed
=
((
Checkself_SEG_step
/
3
)
*
11
)
+
100
;
//Vspeed = ((Checkself_SEG_step / 3) * 11) + 100;
if
((
uint8_t
)((
float
)
Checkself_SEG_step
/
2
.
72
)
==
0
)
{
Vspeed
=
0
;
}
else
{
Vspeed
=
(((
uint8_t
)((
float
)
Checkself_SEG_step
/
2
.
72
)
-
1
)
*
11
)
+
100
;
}
ODO
=
((
Checkself_SEG_step
/
3
)
*
11111
)
+
100000
;
hour
=
(
Checkself_SEG_step
/
3
)
*
11
;
min
=
(
Checkself_SEG_step
/
3
)
*
11
;
...
...
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