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
06eb2b04
Commit
06eb2b04
authored
Jul 31, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:燃油表取消自检时间判断条件
parent
c4e7ae94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
44 deletions
+42
-44
Data_Fuel.c
Firmware/Source/Application/Fuel/Data_Fuel.c
+42
-44
No files found.
Firmware/Source/Application/Fuel/Data_Fuel.c
View file @
06eb2b04
...
...
@@ -221,58 +221,56 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
}
}
/*计算目标格数*/
if
(
Common_GetIgnOnTime
()
>
3005
)
if
(
FuelDir
==
FUEL_SEG_UP
)
{
if
(
FuelDir
==
FUEL_SEG_UP
)
if
(
((
DesFuelSetp
==
4
)
||
FuelInitFlag
)
&&
(
FuelR
<
130
)
)
{
if
(((
DesFuelSetp
==
4
)
||
FuelInitFlag
)
&&
(
FuelR
<
130
))
{
DesFuelSetp
=
5
;
}
else
if
(((
DesFuelSetp
==
3
)
||
FuelInitFlag
)
&&
(
FuelR
<
280
))
{
DesFuelSetp
=
4
;
}
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
<
430
))
{
DesFuelSetp
=
3
;
}
else
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
<
710
))
{
DesFuelSetp
=
2
;
}
else
if
(((
DesFuelSetp
==
0
)
||
FuelInitFlag
)
&&
(
FuelR
<
910
))
{
DesFuelSetp
=
1
;
}
DesFuelSetp
=
5
;
}
else
if
(
FuelDir
==
FUEL_SEG_DOWN
)
else
if
(
((
DesFuelSetp
==
3
)
||
FuelInitFlag
)
&&
(
FuelR
<
280
)
)
{
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
>=
910
))
{
DesFuelSetp
=
0
;
}
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
>=
710
))
{
DesFuelSetp
=
1
;
}
else
if
(((
DesFuelSetp
==
3
)
||
FuelInitFlag
)
&&
(
FuelR
>=
430
))
{
DesFuelSetp
=
2
;
}
else
if
(((
DesFuelSetp
==
4
)
||
FuelInitFlag
)
&&
(
FuelR
>=
280
))
{
DesFuelSetp
=
3
;
}
else
if
(((
DesFuelSetp
==
5
)
||
FuelInitFlag
)
&&
(
FuelR
>=
130
))
{
DesFuelSetp
=
4
;
}
DesFuelSetp
=
4
;
}
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
<
430
))
{
DesFuelSetp
=
3
;
}
else
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
<
710
))
{
DesFuelSetp
=
2
;
}
else
if
(((
DesFuelSetp
==
0
)
||
FuelInitFlag
)
&&
(
FuelR
<
910
))
{
DesFuelSetp
=
1
;
}
}
else
if
(
FuelDir
==
FUEL_SEG_DOWN
)
{
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
>=
910
))
{
DesFuelSetp
=
0
;
}
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
>=
710
))
{
DesFuelSetp
=
1
;
}
else
if
(((
DesFuelSetp
==
3
)
||
FuelInitFlag
)
&&
(
FuelR
>=
430
))
{
DesFuelSetp
=
2
;
}
else
if
(((
DesFuelSetp
==
4
)
||
FuelInitFlag
)
&&
(
FuelR
>=
280
))
{
DesFuelSetp
=
3
;
}
else
if
(((
DesFuelSetp
==
5
)
||
FuelInitFlag
)
&&
(
FuelR
>=
130
))
{
DesFuelSetp
=
4
;
}
}
}
/*IGN ON 1秒/故障恢复后,开始走格 立即指向当前格 20220704*/
...
...
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