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
2edf5c34
Commit
2edf5c34
authored
8 months ago
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:燃油水温数值调整
parent
4f0c52cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Data_Coolant.c
Firmware/Source/Application/Data_Coolant.c
+2
-2
Data_Fuel.c
Firmware/Source/Application/Data_Fuel.c
+2
-2
No files found.
Firmware/Source/Application/Data_Coolant.c
View file @
2edf5c34
...
...
@@ -67,7 +67,7 @@ void Coolant_R_Cal(uint8_t deltaTime)
if
(
g_u8CoolantStateInitFlag
)
{
// CoolantR = ADC_Read_Signal(ADC_CH_Coolant1
);
CoolantR
=
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
);
}
if
(
timeCount
>=
Coolant_DATA_TIME
)
...
...
@@ -76,7 +76,7 @@ void Coolant_R_Cal(uint8_t deltaTime)
if
(
g_u8CoolantDataCount
<
Coolant_DATA_NUM
)
{
/*获取燃油电阻*/
// CoolantRes = ADC_Read_Signal(ADC_CH_Coolant1
);
CoolantRes
=
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
);
/*四舍五入*/
if
(
CoolantRes
<
3100
)
...
...
This diff is collapsed.
Click to expand it.
Firmware/Source/Application/Data_Fuel.c
View file @
2edf5c34
...
...
@@ -78,7 +78,7 @@ void Fuel_R_Cal(uint8_t deltaTime)
FuelRes
=
ADC_Read_Signal
(
ADC_CH_FUEL1
);
/*四舍五入*/
if
(
FuelRes
<
31
00
)
if
(
FuelRes
<
50
00
)
{
if
(
FuelRes
%
10
>=
5
)
{
...
...
@@ -140,7 +140,7 @@ void Fuel_State_Check(uint8_t deltaTime)
g_u16FuelSensorShortTime
+=
deltaTime
;
}
}
else
if
(
FuelR
>
31
00
)
else
if
(
FuelR
>
50
00
)
{
/*开路 310*/
g_u16FuelSensorShortTime
=
0
;
g_u16FuelSensorNormalTime
=
0
;
...
...
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