Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
eccdec79
Commit
eccdec79
authored
Feb 26, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加ABS功能
parent
61db28f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
Telltales_user.c
source/Appliciation/Telltales_user.c
+49
-1
No files found.
source/Appliciation/Telltales_user.c
View file @
eccdec79
...
@@ -508,11 +508,59 @@ void LED_TurnLeft_Lamp_Exec(Tellib_uint16_t led_status)
...
@@ -508,11 +508,59 @@ void LED_TurnLeft_Lamp_Exec(Tellib_uint16_t led_status)
Tellib_uint16_t
LED_ABS_Lamp_Judge
(
void
)
Tellib_uint16_t
LED_ABS_Lamp_Judge
(
void
)
{
{
Tellib_uint16_t
res
=
0u
;
Tellib_uint16_t
res
=
0u
;
if
(
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_can0A18A006_Msg_Count
)
==
CAN_SIG_LOST
)
&&
(
Common_GetIgnOnTime
()
>=
8000
))
{
res
=
2u
;
}
else
{
if
(
Get_CAN_CH0_ID_0A18A006_Sig_AbsFail
()
==
1
)
{
res
=
1u
;
}
else
{
res
=
0u
;
}
}
return
res
;
return
res
;
}
}
void
LED_ABS_Lamp_Exec
(
Tellib_uint16_t
led_status
)
void
LED_ABS_Lamp_Exec
(
Tellib_uint16_t
led_status
)
{
{
if
(
Get_DIAG_TelltalesCtrlsts
()
==
3
)
{
if
(
LEDContrl
.
_3F80
.
ABSAlarm
==
1
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
else
{
if
(
led_status
==
2u
)
{
if
(
g_LED
.
LedBlink_1_5HZ
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
else
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
}
}
Tellib_uint16_t
LED_EBD_Lamp_Judge
(
void
)
Tellib_uint16_t
LED_EBD_Lamp_Judge
(
void
)
{
{
...
...
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