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
88a11d24
Commit
88a11d24
authored
Aug 01, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:52750 燃油采集有问题;大阻值误差大,更改回差值
parent
05230a80
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Data_Fuel.c
Firmware/Source/Application/Fuel/Data_Fuel.c
+5
-5
TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.10_240731.srec
...Y200.080000b_ty_BAT32G139GK64FB_BootApp_S1.10_240731.srec
+0
-0
TY_TY200.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.10_240731.srec
...00.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.10_240731.srec
+0
-0
No files found.
Firmware/Source/Application/Fuel/Data_Fuel.c
View file @
88a11d24
...
...
@@ -6,7 +6,7 @@
#define FUEL_CAL_START 15u
/*数据排序后取中间部分计算平均:起始*/
#define FUEL_CAL_END 25u
/*数据排序后取中间部分计算平均:结束*/
#define RETURN_DIFFERENCE 1
5
u
/*判断上升或下降的回差,精度0.1*/
#define RETURN_DIFFERENCE 1
0
u
/*判断上升或下降的回差,精度0.1*/
#define FUEL_SEG_UP 0u
#define FUEL_SEG_DOWN 1u
...
...
@@ -236,22 +236,22 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
{
DesFuelSetp
=
3
;
}
else
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
<
7
1
0
))
else
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
<
7
0
0
))
{
DesFuelSetp
=
2
;
}
else
if
(((
DesFuelSetp
==
0
)
||
FuelInitFlag
)
&&
(
FuelR
<
9
1
0
))
else
if
(((
DesFuelSetp
==
0
)
||
FuelInitFlag
)
&&
(
FuelR
<
9
0
0
))
{
DesFuelSetp
=
1
;
}
}
else
if
(
FuelDir
==
FUEL_SEG_DOWN
)
{
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
>=
9
1
0
))
if
(((
DesFuelSetp
==
1
)
||
FuelInitFlag
)
&&
(
FuelR
>=
9
0
0
))
{
DesFuelSetp
=
0
;
}
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
>=
7
1
0
))
else
if
(((
DesFuelSetp
==
2
)
||
FuelInitFlag
)
&&
(
FuelR
>=
7
0
0
))
{
DesFuelSetp
=
1
;
}
...
...
Firmware/utility/程序释放/20240731/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.09_240724/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.10_240731.srec
deleted
100644 → 0
View file @
05230a80
This diff is collapsed.
Click to expand it.
Firmware/utility/程序释放/20240731/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.09_240724/TY_TY200.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.10_240731.srec
deleted
100644 → 0
View file @
05230a80
This diff is collapsed.
Click to expand it.
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