Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
98c25fb6
Commit
98c25fb6
authored
Feb 20, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:混动车型增加刀盘过载指示灯功能逻辑
parent
a9b6cd09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
10 deletions
+36
-10
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+36
-10
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
98c25fb6
...
...
@@ -297,16 +297,42 @@ static void LED_Grass_Full_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_OVERLOAD_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_BMCU_Moto1_Locked_RotorFault
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_BMCU_Moto2_Locked_RotorFault
();
if
(((
Signal1
==
0x1
)
||
(
Signal2
==
0x1
))
&&
openLED_flag
)
{
LED_STATE
=
1
;
}
else
{
LED_STATE
=
0
;
}
#if (PART_NUMBER == RMR42E_60)
Tellib_uint8_t
Signal1
=
Get_CAN_Num_BMCU_Moto1_Locked_RotorFault
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_BMCU_Moto2_Locked_RotorFault
();
if
(((
Signal1
==
0x1
)
||
(
Signal2
==
0x1
))
&&
openLED_flag
)
{
LED_STATE
=
1
;
}
else
{
LED_STATE
=
0
;
}
#else
for
(
uint8_t
i
=
0U
;
i
<
9U
;
i
++
)
{
if
((
g_OverLoadStatus
[
i
]
==
0U
)
&&
(
g_OverLoadCount
[
i
]
>=
3U
))
{
g_OverLoadStatus
[
i
]
=
1U
;
}
else
if
((
g_OverLoadStatus
[
i
]
==
1U
)
&&
(
g_OverLoadCount
[
i
]
>=
3U
))
{
g_OverLoadStatus
[
i
]
=
0U
;
}
}
if
((
g_OverLoadStatus
[
0
]
==
0U
)
&&
(
g_OverLoadStatus
[
1
]
==
0U
)
&&
(
g_OverLoadStatus
[
2
]
==
0U
)
&&
(
g_OverLoadStatus
[
3
]
==
0U
)
&&
(
g_OverLoadStatus
[
4
]
==
0U
)
&&
(
g_OverLoadStatus
[
5
]
==
0U
)
&&
(
g_OverLoadStatus
[
6
]
==
0U
)
&&
(
g_OverLoadStatus
[
7
]
==
0U
)
&&
(
g_OverLoadStatus
[
8
]
==
0U
))
{
LED_STATE
=
0U
;
}
else
{
LED_STATE
=
1U
;
}
#endif
return
LED_STATE
;
}
static
void
LED_OVERLOAD_Execution
(
Tellib_uint16_t
led_status
)
...
...
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