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
5c280a97
Commit
5c280a97
authored
Apr 01, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:41048修改负功率计算,判断无效值时显示--
parent
c3df8338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
Gauge_Display.c
le19源码/Source/Application/Display/Gauge_Display.c
+17
-10
No files found.
le19源码/Source/Application/Display/Gauge_Display.c
View file @
5c280a97
...
...
@@ -309,20 +309,27 @@ void Gauge_Power_Display(void)
}
else
//PTModeInd = 1,且有效时
{
if
(
BattCurr
.
Val
ue
==
0
)
if
(
BattCurr
.
Val
id
==
1
)
{
SEG_SET_PowerDial
(
1u
,
0u
,
0u
,
0u
);
if
(
BattCurr
.
Value
==
0
)
{
SEG_SET_PowerDial
(
1u
,
0u
,
0u
,
0u
);
}
else
{
//-1格和-50%
SEG_SET_PowerDial
(
1u
,
0x81u
,
1u
,
50u
);
if
(
BattCurr
.
Value
>
5000
)
{
//-1 -2格和-100%
SEG_SET_PowerDial
(
1u
,
0x82u
,
1u
,
100u
);
}
}
}
else
{
//-1格和-50%
SEG_SET_PowerDial
(
1u
,
0x81u
,
1u
,
50u
);
if
(
BattCurr
.
Value
>
5000
)
{
//-1 -2格和-100%
SEG_SET_PowerDial
(
1u
,
0x82u
,
1u
,
100u
);
}
SEG_SET_PowerDial
(
1u
,
0u
,
0u
,
255u
);
}
}
}
...
...
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