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
fd07efbb
Commit
fd07efbb
authored
Aug 28, 2024
by
王雅楠
🍎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🦄
refactor:仅增加接收水温CAN值变量
parent
ab80a8d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+2
-3
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
fd07efbb
...
@@ -336,14 +336,13 @@ static void LED_Fuel_Level_Low_Execution(Tellib_uint16_t led_status)
...
@@ -336,14 +336,13 @@ static void LED_Fuel_Level_Low_Execution(Tellib_uint16_t led_status)
}
}
// uint16_t ECU_Engine_Temperature_R =0;
// uint16_t ECU_Engine_Temperature_R =0;
// uint32
_t test_ECU_Engine_Temperature =0;
uint16
_t
test_ECU_Engine_Temperature
=
0
;
/*信号来源:ECU_101 +硬线-P11 阻值 CAN>硬线*/
/*信号来源:ECU_101 +硬线-P11 阻值 CAN>硬线*/
static
Tellib_uint16_t
LED_Coolant_Temperature_Judgement
(
void
)
static
Tellib_uint16_t
LED_Coolant_Temperature_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_101_Msg_Count
)
==
CAN_SIG_LOST
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_101_Msg_Count
)
==
CAN_SIG_LOST
)
{
{
// ECU_Engine_Temperature_R = ADC_Read_Signal(ADC_CH_COOLANT_TEMP1_R);
if
(
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
)
<=
20
)
if
(
ADC_Read_Signal
(
ADC_CH_COOLANT_TEMP1_R
)
<=
20
)
{
{
ECU_Engine_Temperature_flag
=
1
;
ECU_Engine_Temperature_flag
=
1
;
...
@@ -372,7 +371,7 @@ static Tellib_uint16_t LED_Coolant_Temperature_Judgement(void)
...
@@ -372,7 +371,7 @@ static Tellib_uint16_t LED_Coolant_Temperature_Judgement(void)
}
}
else
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
)
if
(
Get_CAN_CH0_ID_101_Sig_ECU_Engine_Temperature
()
>=
120
)
{
{
ECU_Engine_Temperature_flag
=
1
;
ECU_Engine_Temperature_flag
=
1
;
...
...
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