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
baizhengyuan
TianYing_ty100
Commits
a3c7aa95
Commit
a3c7aa95
authored
Aug 07, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:341掉线、373掉线或胎压id无效,450胎压外发0
parent
24f9d12e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+8
-2
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
a3c7aa95
...
...
@@ -110,7 +110,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
{
p450
->
Msg
[
i
]
=
0x0u
;
}
if
(
Get_TPMS_Front_Learn
()
!=
2
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
==
CAN_SIG_LOST
\
||
Get_TPMS_Front_Learn
()
!=
2
||
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x373_Msg_Count
)
==
CAN_SIG_LOST
\
||
Get_Front_TPMS_ID_Vaild
()
==
0
)
{
p450
->
Sig
.
Front_Pressure_TX_H
=
0
;
p450
->
Sig
.
Front_Pressure_TX_L
=
0
;
...
...
@@ -120,7 +123,10 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
p450
->
Sig
.
Front_Pressure_TX_H
=
((
Get_Front_TPMS_TX
()
+
146
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Front_Pressure_TX_L
=
(
Get_Front_TPMS_TX
()
+
146
)
&
0xFF
;
}
if
(
Get_TPMS_Rear_Learn
()
!=
2
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
==
CAN_SIG_LOST
\
||
Get_TPMS_Rear_Learn
()
!=
2
||
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x373_Msg_Count
)
==
CAN_SIG_LOST
\
||
Get_Rear_TPMS_ID_Vaild
()
==
0
)
{
p450
->
Sig
.
Rear_Pressure_TX_H
=
0
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
0
;
...
...
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