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
9c0fc974
Commit
9c0fc974
authored
Aug 06, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:54706 胎压学习失败和学习中外发显示0
parent
cd79cb16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+2
-2
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+10
-0
Data_TPMS.h
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
+2
-0
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
9c0fc974
...
...
@@ -110,7 +110,7 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
{
p450
->
Msg
[
i
]
=
0x0u
;
}
if
(
MenuData
.
TPMS_Front_Learn
!=
2
)
if
(
Get_TPMS_Front_Learn
()
!=
2
)
{
p450
->
Sig
.
Front_Pressure_TX_H
=
0
;
p450
->
Sig
.
Front_Pressure_TX_L
=
0
;
...
...
@@ -120,7 +120,7 @@ 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
(
MenuData
.
TPMS_Rear_Learn
!=
2
)
if
(
Get_TPMS_Rear_Learn
()
!=
2
)
{
p450
->
Sig
.
Rear_Pressure_TX_H
=
0
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
0
;
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
9c0fc974
...
...
@@ -600,6 +600,16 @@ uint8_t Get_Rear_FirstLearn_Flag (void)
return
TPMS
.
TPMS_Rear_FirstLearn_Flag
;
}
uint8_t
Get_TPMS_Front_Learn
(
void
)
{
return
TPMS
.
TPMS_Front_Learn
;
}
uint8_t
Get_TPMS_Rear_Learn
(
void
)
{
return
TPMS
.
TPMS_Rear_Learn
;
}
/*获取0x341是否掉线 0-掉线 “--”闪烁 1-在线 获取学习结果进行显示*/
uint8_t
Get_TPMS_CAN_LOST
(
void
)
{
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
View file @
9c0fc974
...
...
@@ -46,6 +46,8 @@ void Data_TPMS_KL15_WAKE_UP_Init ( void );
uint8_t
Get_Front_FirstLearn_Flag
(
void
);
uint8_t
Get_Rear_FirstLearn_Flag
(
void
);
uint8_t
Get_TPMS_CAN_LOST
(
void
);
uint8_t
Get_TPMS_Front_Learn
(
void
);
uint8_t
Get_TPMS_Rear_Learn
(
void
);
void
Can_341_Receive
(
void
);
#endif
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