Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LE19
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
时昊
LE19
Commits
4aaa4e4c
Commit
4aaa4e4c
authored
Mar 28, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:41048修改电流发0.1时,显示错误
parent
ff8f05f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Gauge_Display.c
le19源码/Source/Application/Display/Gauge_Display.c
+5
-5
No files found.
le19源码/Source/Application/Display/Gauge_Display.c
View file @
4aaa4e4c
...
...
@@ -290,10 +290,10 @@ void Gauge_Power_Display(void)
}
BattCurr
.
Value
=
Batt_Curr
;
//100倍
BattCurr
.
Value
*=
1
00
;
//乘100%
BattCurr
.
Value
/=
2
00
;
//除200
BattCurr
.
Value
+=
90
;
//大于等于10进1 0.1*100=10
BattCurr
.
Value
/=
100
;
//1倍,留整数
BattCurr
.
Value
*=
1
;
//乘100%
BattCurr
.
Value
/=
2
;
//除200
//
BattCurr.Value += 90;//大于等于10进1 0.1*100=10
//
BattCurr.Value /= 100;//1倍,留整数
}
else
{
...
...
@@ -318,7 +318,7 @@ void Gauge_Power_Display(void)
//-1格和-50%
SEG_SET_PowerDial
(
1u
,
0x81u
,
1u
,
50u
);
if
(
BattCurr
.
Value
>
50
)
if
(
BattCurr
.
Value
>
50
00
)
{
//-1 -2格和-100%
SEG_SET_PowerDial
(
1u
,
0x82u
,
1u
,
100u
);
...
...
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