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
26d92e2d
Commit
26d92e2d
authored
Feb 21, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:混动车型增加总SOC显示逻辑
parent
ab8f130c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
6 deletions
+39
-6
Data_Soc.c
Firmware/Source/Application/Data_Soc/Data_Soc.c
+39
-6
No files found.
Firmware/Source/Application/Data_Soc/Data_Soc.c
View file @
26d92e2d
...
...
@@ -460,15 +460,12 @@ static void Data_Soc_Battery_Icon_Service(void)
static
void
Data_Soc_All_Soc_Service
(
void
)
{
#if (PART_NUMBER == RMR42E_60)
if
((
Common_Get_IG_Sts
()
==
COMMON_POWER_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
#if (PART_NUMBER == RMR42E_60)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH0
(
CAN_CH0_ID_CAN_0x18203020_Msg
))
==
CAN_SIG_NORMAL
)
#else
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH0
(
CAN_CH0_ID_CAN_0x17A_Msg
))
==
CAN_SIG_NORMAL
)
#endif
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
Co_Can_ConvertSubID_CAN_CH0
(
CAN_CH0_ID_CAN_0x18203020_Msg
))
==
CAN_SIG_NORMAL
)
{
//
Soc.AllSocValue = Get_CAN_CH0_ID_18203020_Sig_MBMS_StatSoc();
Soc
.
AllSocValue
=
Get_CAN_CH0_ID_18203020_Sig_MBMS_StatSoc
();
}
else
{
...
...
@@ -485,6 +482,42 @@ static void Data_Soc_All_Soc_Service(void)
Soc
.
AllSocValue
=
0U
;
Soc
.
AllSocValid
=
0U
;
}
#else
uint8_t
MBMSStatSoc
=
Get_CAN_CH0_ID_17A_Sig_MBMS_StatSoc
();
uint8_t
VCUChgMode
=
Get_CAN_CH0_ID_220_Sig_VCU_ChgMode
();
if
(
MBMSStatSoc
>
100U
)
{
MBMSStatSoc
=
100u
;
}
if
(
VCUChgMode
==
1U
)
{
if
(
Get_CAN_Power_State
()
>
KEY_OFF
)
{
Soc
.
AllSocValue
=
MBMSStatSoc
;
Soc
.
AllSocValid
=
1U
;
}
else
{
Soc
.
AllSocValue
=
0U
;
Soc
.
AllSocValid
=
0U
;
}
}
else
{
if
(
Get_CAN_Power_State
()
<
KEY_ACC
)
{
Soc
.
AllSocValue
=
0U
;
Soc
.
AllSocValid
=
0U
;
}
else
{
Soc
.
AllSocValue
=
MBMSStatSoc
;
Soc
.
AllSocValid
=
1U
;
}
}
#endif
}
void
Data_Soc_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