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
8f0b8113
Commit
8f0b8113
authored
Aug 20, 2024
by
王雅楠
🍎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:【54820】【56267】更改水温灯逻辑
parent
d3c1fabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+21
-7
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
8f0b8113
...
...
@@ -346,30 +346,44 @@ static void LED_Fuel_Level_Low_Execution(Tellib_uint16_t led_status)
{
}
uint32_t
test_ECU_Engine_Temperature
=
0
;
// uint16_t ECU_Engine_Temperature_R =0;
//
uint32_t test_ECU_Engine_Temperature =0;
/*信号来源:ECU_101 +硬线-P11 阻值 CAN>硬线*/
static
Tellib_uint16_t
LED_Coolant_Temperature_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_101_Msg_Count
)
==
CAN_SIG_LOST
)
{
if
(
Line_In_Get_Status
(
LINE_IN_Coolant_Temperature
))
// ECU_Engine_Temperature_R = ADC_Read_Signal(ADC_CH_COOLANT_TEMP1_R);
if
(
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
)
<=
20
)
{
ECU_Engine_Temperature_flag
=
1
;
LED_STATE
=
1u
;
}
else
if
(
Line_In_Get_Status
(
LINE_IN_Coolant_Temperature
)
==
0
)
else
if
(
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
)
>=
23
)
{
ECU_Engine_Temperature_flag
=
0
;
LED_STATE
=
0u
;
}
else
{
LED_STATE
=
0u
;
if
(
ECU_Engine_Temperature_flag
==
1
)
{
LED_STATE
=
1u
;
}
else
if
(
ECU_Engine_Temperature_flag
==
0
)
{
LED_STATE
=
0u
;
}
else
{
LED_STATE
=
0u
;
}
}
}
else
{
test_ECU_Engine_Temperature
=
Get_CAN_CH0_ID_101_Sig_ECU_Engine_Temperature
();
//
test_ECU_Engine_Temperature = Get_CAN_CH0_ID_101_Sig_ECU_Engine_Temperature();
if
(
Get_CAN_CH0_ID_101_Sig_ECU_Engine_Temperature
()
>=
120
)
{
ECU_Engine_Temperature_flag
=
1
;
...
...
@@ -392,7 +406,7 @@ static Tellib_uint16_t LED_Coolant_Temperature_Judgement(void)
}
else
{
;
LED_STATE
=
0u
;
}
}
}
...
...
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