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
0545fb2e
Commit
0545fb2e
authored
May 13, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改远光灯硬线信号低有效
parent
d9d80769
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+1
-1
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+16
-7
No files found.
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
0545fb2e
...
...
@@ -8,7 +8,7 @@ const Line_In_Attribute_st g_stLineInAttribute[LINE_IN_MAX] =
{
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_TurnLeft
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_TurnRight
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
60U
,
20U
,
Get_LINE_IN_HighBeam
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
60U
,
20U
,
Get_LINE_IN_HighBeam
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_FAULT_ELECTROSPRAY
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Fault_ABS
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Oil_Pressure
,
},
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
0545fb2e
...
...
@@ -268,7 +268,7 @@ static void LED_Fuel_Execution(Tellib_uint16_t led_status)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_21_Fuel_W
,
LED_OFF
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_20_Fuel_Y
,
LED_OFF
);
SEG_SET_LED_STS
(
em_SEG_Fuel
,
0
);
//
SEG_SET_LED_STS(em_SEG_Fuel,0);
}
}
static
Tellib_uint16_t
LED_Coolant_Judgement
(
void
)
...
...
@@ -318,16 +318,17 @@ static void LED_Coolant_Execution(Tellib_uint16_t led_status)
SEG_SET_LED_STS
(
em_SEG_Coolant
,
0
);
}
}
else
if
(
led_status
==
1
u
)
else
if
(
led_status
==
0
u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Temp_AlarmR
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_13_Temp_AlarmW
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Temp_AlarmR
,
LED_OFF
);
SEG_SET_LED_STS
(
em_SEG_Coolant
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_13_Temp_AlarmW
,
LED_OFF
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Temp_AlarmR
,
LED_OFF
);
SEG_SET_LED_STS
(
em_SEG_Coolant
,
0
);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_13_Temp_AlarmW, LED_OFF);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_11_Temp_AlarmR, LED_OFF);
//
SEG_SET_LED_STS(em_SEG_Coolant, 0);
}
}
static
Tellib_uint16_t
LED_Bluetooth_Judgement
(
void
)
...
...
@@ -470,6 +471,14 @@ static void LED_Auto_Start_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_Maintain_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Get_Data_Maintenace_Interval_Processing
()
==
0
)
{
LED_STATE
=
1
;
}
else
{
LED_STATE
=
0
;
}
return
LED_STATE
;
}
static
void
LED_Maintain_Execution
(
Tellib_uint16_t
led_status
)
...
...
@@ -614,7 +623,7 @@ void Turn_Left_Right_Lamp(void)
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
Common_GetIgnOnTime
()
>=
3000
)
if
(
(
Common_GetIgnOnTime
()
>=
3000
)
&&
(
ClearODO_Flag
==
0
)
)
{
if
(
Line_In_Get_Status
(
LINE_IN_TurnLeft
))
{
...
...
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