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
4a797822
Commit
4a797822
authored
Jul 31, 2024
by
é家ä¹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
š
fix:ę“ę¹ēę²¹ē¶ęåå§åå¼ļ¼ēę²¹ē¶ęę£ęµå¤ęę”件
parent
f8ad87c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
44 deletions
+49
-44
Data_Fuel.c
Firmware/Source/Application/Fuel/Data_Fuel.c
+49
-44
No files found.
Firmware/Source/Application/Fuel/Data_Fuel.c
View file @
4a797822
...
@@ -35,7 +35,7 @@ void Fuel_KL30_Init(void)
...
@@ -35,7 +35,7 @@ void Fuel_KL30_Init(void)
FuelInitFlag
=
1u
;
FuelInitFlag
=
1u
;
FuelStateInitFlag
=
1u
;
FuelStateInitFlag
=
1u
;
FuelDir
=
FUEL_SEG_UP
;
FuelDir
=
FUEL_SEG_UP
;
FuelSensorState
=
FuelSensorShortCircuit
;
//FuelSensorNormal;
FuelSensorState
=
FuelSensor
Normal
;
//FuelSensor
ShortCircuit;//FuelSensorNormal;
FuelSensorNormalTime
=
0u
;
FuelSensorNormalTime
=
0u
;
FuelSensorShortTime
=
0u
;
FuelSensorShortTime
=
0u
;
FuelSensorOpenTime
=
0u
;
FuelSensorOpenTime
=
0u
;
...
@@ -51,7 +51,7 @@ void Fuel_KL15_Init(void)
...
@@ -51,7 +51,7 @@ void Fuel_KL15_Init(void)
FuelInitFlag
=
1u
;
FuelInitFlag
=
1u
;
FuelStateInitFlag
=
1u
;
FuelStateInitFlag
=
1u
;
FuelDir
=
FUEL_SEG_UP
;
FuelDir
=
FUEL_SEG_UP
;
FuelSensorState
=
FuelSensorShortCircuit
;
//FuelSensorNormal;
FuelSensorState
=
FuelSensor
Normal
;
//FuelSensor
ShortCircuit;//FuelSensorNormal;
FuelSensorNormalTime
=
0u
;
FuelSensorNormalTime
=
0u
;
FuelSensorShortTime
=
0u
;
FuelSensorShortTime
=
0u
;
FuelSensorOpenTime
=
0u
;
FuelSensorOpenTime
=
0u
;
...
@@ -130,7 +130,7 @@ void Fuel_State_Check(uint8_t deltaTime)
...
@@ -130,7 +130,7 @@ void Fuel_State_Check(uint8_t deltaTime)
{
/*ēč·Æ 1*/
{
/*ēč·Æ 1*/
FuelSensorOpenTime
=
0
;
FuelSensorOpenTime
=
0
;
FuelSensorNormalTime
=
0
;
FuelSensorNormalTime
=
0
;
if
((
FuelSensorShortTime
>
3000
)
||
((
FuelStateInitFlag
)
&&
(
FuelSensorShortTime
>
3000
)))
if
((
FuelSensorShortTime
>
3000
)
||
((
FuelStateInitFlag
)
&&
(
FuelSensorShortTime
<=
3000
)))
{
{
FuelSensorState
=
FuelSensorShortCircuit
;
FuelSensorState
=
FuelSensorShortCircuit
;
DesFuelSetp
=
0
;
DesFuelSetp
=
0
;
...
@@ -148,7 +148,7 @@ void Fuel_State_Check(uint8_t deltaTime)
...
@@ -148,7 +148,7 @@ void Fuel_State_Check(uint8_t deltaTime)
{
/*ęč·Æ 320*/
{
/*ęč·Æ 320*/
FuelSensorShortTime
=
0
;
FuelSensorShortTime
=
0
;
FuelSensorNormalTime
=
0
;
FuelSensorNormalTime
=
0
;
if
((
FuelSensorOpenTime
>
2800
)
||
((
FuelStateInitFlag
)
&&
(
FuelSensorOpenTime
>
2800
)))
if
((
FuelSensorOpenTime
>
2800
)
||
((
FuelStateInitFlag
)
&&
(
FuelSensorOpenTime
<=
2800
)))
{
{
FuelSensorState
=
FuelSensorOpenCircuit
;
FuelSensorState
=
FuelSensorOpenCircuit
;
DesFuelSetp
=
0
;
DesFuelSetp
=
0
;
...
@@ -222,6 +222,8 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
...
@@ -222,6 +222,8 @@ 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
))
...
@@ -270,6 +272,9 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
...
@@ -270,6 +272,9 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
}
}
}
}
}
/*IGN ON 1ē§/ę éę¢å¤åļ¼å¼å§čµ°ę ¼ ē«å³ęåå½åę ¼ 20220704*/
/*IGN ON 1ē§/ę éę¢å¤åļ¼å¼å§čµ°ę ¼ ē«å³ęåå½åę ¼ 20220704*/
if
(
Common_GetIgnOnTime
()
>=
3000
)
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
{
...
...
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