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
59809d7a
Commit
59809d7a
authored
Jul 05, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:燃油阻值更改
parent
0a780149
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
12 deletions
+28
-12
Data_Fuel.c
Firmware/Source/Application/Data_Fuel.c
+28
-12
No files found.
Firmware/Source/Application/Data_Fuel.c
View file @
59809d7a
...
...
@@ -217,57 +217,73 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
/*计算目标格数*/
if
(
g_u8FuelDir
==
FUEL_SEG_UP
)
{
if
(((
g_u8DesFuelSetp
==
5
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
30
))
if
(((
g_u8DesFuelSetp
==
7
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<=
110
))
{
g_u8DesFuelSetp
=
8
;
}
else
if
(((
g_u8DesFuelSetp
==
6
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<=
210
))
{
g_u8DesFuelSetp
=
7
;
}
else
if
(((
g_u8DesFuelSetp
==
5
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<=
310
))
{
g_u8DesFuelSetp
=
6
;
}
else
if
(((
g_u8DesFuelSetp
==
4
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
16
0
))
else
if
(((
g_u8DesFuelSetp
==
4
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
=
38
0
))
{
g_u8DesFuelSetp
=
5
;
}
else
if
(((
g_u8DesFuelSetp
==
3
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
30
0
))
else
if
(((
g_u8DesFuelSetp
==
3
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
=
49
0
))
{
g_u8DesFuelSetp
=
4
;
}
else
if
(((
g_u8DesFuelSetp
==
2
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
50
0
))
else
if
(((
g_u8DesFuelSetp
==
2
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
=
61
0
))
{
g_u8DesFuelSetp
=
3
;
}
else
if
(((
g_u8DesFuelSetp
==
1
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
79
0
))
else
if
(((
g_u8DesFuelSetp
==
1
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<
=
83
0
))
{
g_u8DesFuelSetp
=
2
;
}
else
if
(((
g_u8DesFuelSetp
==
0
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<=
31
00
))
else
if
(((
g_u8DesFuelSetp
==
0
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
<=
50
00
))
{
g_u8DesFuelSetp
=
1
;
}
}
else
if
(
g_u8FuelDir
==
FUEL_SEG_DOWN
)
{
if
(((
g_u8DesFuelSetp
==
1
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
31
00
))
if
(((
g_u8DesFuelSetp
==
1
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
50
00
))
{
g_u8DesFuelSetp
=
0
;
}
else
if
(((
g_u8DesFuelSetp
==
2
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
=
79
0
))
else
if
(((
g_u8DesFuelSetp
==
2
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
83
0
))
{
g_u8DesFuelSetp
=
1
;
}
else
if
(((
g_u8DesFuelSetp
==
3
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
=
50
0
))
else
if
(((
g_u8DesFuelSetp
==
3
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
61
0
))
{
g_u8DesFuelSetp
=
2
;
}
else
if
(((
g_u8DesFuelSetp
==
4
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
=
30
0
))
else
if
(((
g_u8DesFuelSetp
==
4
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
49
0
))
{
g_u8DesFuelSetp
=
3
;
}
else
if
(((
g_u8DesFuelSetp
==
5
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
=
16
0
))
else
if
(((
g_u8DesFuelSetp
==
5
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
38
0
))
{
g_u8DesFuelSetp
=
4
;
}
else
if
(((
g_u8DesFuelSetp
==
6
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
=
3
0
))
else
if
(((
g_u8DesFuelSetp
==
6
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
31
0
))
{
g_u8DesFuelSetp
=
5
;
}
else
if
(((
g_u8DesFuelSetp
==
7
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
210
))
{
g_u8DesFuelSetp
=
6
;
}
else
if
(((
g_u8DesFuelSetp
==
8
)
||
g_u8FuelInitFlag
)
&&
(
FuelR
>
110
))
{
g_u8DesFuelSetp
=
7
;
}
}
}
...
...
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