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
d754359a
Commit
d754359a
authored
Feb 20, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:混动车型增加刀盘档位指示灯工作逻辑
parent
c5d63a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
Data_Gear.c
Firmware/Source/Application/Driving_Information/Data_Gear.c
+30
-0
No files found.
Firmware/Source/Application/Driving_Information/Data_Gear.c
View file @
d754359a
...
@@ -17,6 +17,7 @@ void Data_Gear_KL15_Init(void)
...
@@ -17,6 +17,7 @@ void Data_Gear_KL15_Init(void)
void
Data_Gear_Cutterhead_Service
(
void
)
void
Data_Gear_Cutterhead_Service
(
void
)
{
{
#if (PART_NUMBER == RMR42E_60)
uint8_t
Signal1
=
Get_CAN_Num_BMCU_BladeSpeedGear
();
uint8_t
Signal1
=
Get_CAN_Num_BMCU_BladeSpeedGear
();
uint8_t
Signal2
=
Get_CAN_Num_BMCU_ErrorGrage
();
uint8_t
Signal2
=
Get_CAN_Num_BMCU_ErrorGrage
();
// uint8_t MBMS_StatBattWorkState = Get_CAN_CH0_ID_18203220_Sig_MBMS_StatBattWorkState();
// uint8_t MBMS_StatBattWorkState = Get_CAN_CH0_ID_18203220_Sig_MBMS_StatBattWorkState();
...
@@ -44,6 +45,35 @@ void Data_Gear_Cutterhead_Service(void)
...
@@ -44,6 +45,35 @@ void Data_Gear_Cutterhead_Service(void)
Gear
.
CutterheadValid
=
0x0U
;
Gear
.
CutterheadValid
=
0x0U
;
Gear
.
CutterHeadNum
=
0U
;
Gear
.
CutterHeadNum
=
0U
;
}
}
#else
uint8_t
Signal
=
Get_CAN_CH0_ID_220_Sig_VCU_BladeSpdGear
();
if
((
Common_Get_IG_Sts
()
==
COMMON_POWER_ON
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH0
(
CAN_CH0_ID_CAN_0x220_Msg
))
==
CAN_SIG_NORMAL
)
{
if
(
Signal
==
0U
)
{
Gear
.
CutterHeadNum
=
Gear_L
;
}
else
if
(
Signal
==
1U
)
{
Gear
.
CutterHeadNum
=
Gear_H
;
}
else
{
Gear
.
CutterHeadNum
=
0U
;
}
Gear
.
CutterheadValid
=
0x1U
;
}
}
else
{
Gear
.
CutterheadValid
=
0x0U
;
Gear
.
CutterHeadNum
=
0U
;
}
#endif
}
}
void
Data_Gear_Service
(
void
)
void
Data_Gear_Service
(
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