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
bf0a2e5e
Commit
bf0a2e5e
authored
Jul 01, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:系统通知,胎压未学习状态不判断时间了
parent
2e4a80a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
79 deletions
+89
-79
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+61
-60
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+28
-19
No files found.
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
bf0a2e5e
...
...
@@ -68,43 +68,44 @@ void Data_TPMS_Processing_Service ( void )
if
(
TPMS
.
TPMS_Front_Learn
==
0x0
)
{
if
(
LearnTime_Count
<=
6000
)
{
LearnTime_Count
++
;
//
if(LearnTime_Count <= 6000)
//
{
//
LearnTime_Count++;
TPMS
.
TPMS_Front_Learn
=
Unstudied
;
}
else
{
if
(
TPMS
.
TPMS_Front_Timeclean
==
1
)
{
LearnTime_Count
=
0
;
}
TPMS
.
TPMS_Front_Timeclean
=
0
;
if
((
MenuData
.
TPMS_Front_Learn
!=
0x2
)
&&
(
MenuData
.
TPMS_Front_Learn
!=
0x3
)
)
{
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
!=
CAN_SIG_LOST
)
{
TPMS
.
TPMS_Front_Learn
=
LearningFailure
;
}
else
{
TPMS
.
TPMS_Front_Learn
=
MenuData
.
TPMS_Front_Learn
;
}
}
else
{
TPMS
.
TPMS_Front_Learn
=
MenuData
.
TPMS_Front_Learn
;
}
}
//}
//else
//{
// if(TPMS.TPMS_Front_Timeclean == 1)
// {
// LearnTime_Count = 0;
// }
// TPMS.TPMS_Front_Timeclean = 0;
// if ((MenuData.TPMS_Front_Learn != 0x2) && (MenuData.TPMS_Front_Learn != 0x3) )
// {
// if(CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x341_Msg_Count) != CAN_SIG_LOST)
// {
// TPMS.TPMS_Front_Learn = LearningFailure;
// }
// else
// {
// TPMS.TPMS_Front_Learn = MenuData.TPMS_Front_Learn;
// }
//
// }
// else
// {
// TPMS.TPMS_Front_Learn = MenuData.TPMS_Front_Learn;
// }
//}
}
else
if
(
TPMS
.
TPMS_Front_Learn
==
0x1
)
{
if
(
TPMS
.
TPMS_Front_Timeclean
==
0
)
{
LearnTime_Count
=
0
;
}
TPMS
.
TPMS_Front_Timeclean
=
1
;
//
if(TPMS.TPMS_Front_Timeclean == 0)
//
{
//
LearnTime_Count = 0;
//
}
//
TPMS.TPMS_Front_Timeclean = 1;
if
(
LearnTime_Count
<=
6000
)
{
LearnTime_Count
++
;
...
...
@@ -155,34 +156,34 @@ void Data_TPMS_Processing_Service ( void )
if
(
TPMS
.
TPMS_Rear_Learn
==
0x0
)
{
if
(
LearnTime_Count1
<=
6000
)
{
LearnTime_Count1
++
;
TPMS
.
TPMS_Rear_Learn
=
Unstudied
;
}
else
{
if
(
TPMS
.
TPMS_Rear_Timeclean
==
1
)
{
//if(LearnTime_Count1 <= 6000)
//{
LearnTime_Count1
=
0
;
}
TPMS
.
TPMS_Rear_Timeclean
=
0
;
if
((
MenuData
.
TPMS_Rear_Learn
!=
0x2
)
&&
(
MenuData
.
TPMS_Rear_Learn
!=
0x3
)
)
{
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
!=
CAN_SIG_LOST
)
{
TPMS
.
TPMS_Rear_Learn
=
LearningFailure
;
}
else
{
TPMS
.
TPMS_Rear_Learn
=
MenuData
.
TPMS_Rear_Learn
;
}
}
else
{
TPMS
.
TPMS_Rear_Learn
=
MenuData
.
TPMS_Rear_Learn
;
}
}
TPMS
.
TPMS_Rear_Learn
=
Unstudied
;
//}
//else
//{
// if(TPMS.TPMS_Rear_Timeclean == 1)
// {
// LearnTime_Count1 = 0;
// }
// TPMS.TPMS_Rear_Timeclean = 0;
// if ((MenuData.TPMS_Rear_Learn != 0x2) && (MenuData.TPMS_Rear_Learn != 0x3) )
// {
// if(CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x341_Msg_Count) != CAN_SIG_LOST)
// {
// TPMS.TPMS_Rear_Learn = LearningFailure;
// }
// else
// {
// TPMS.TPMS_Rear_Learn = MenuData.TPMS_Rear_Learn;
// }
// }
// else
// {
// TPMS.TPMS_Rear_Learn = MenuData.TPMS_Rear_Learn;
// }
//}
}
else
if
(
TPMS
.
TPMS_Rear_Learn
==
0x1
)
{
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
bf0a2e5e
...
...
@@ -2130,6 +2130,13 @@ void SEG_SET_TPMS_DISPLAY(uint8_t m_Flag, uint16_t m_NUM1, uint16_t m_NUM2, uint
IC2_SEG109
=
IC_SEG_OFF
;
IC2_SEG110
=
IC_SEG_ON
;
if
(
Get_TPMS_CAN_LOST
()
==
0
)
{
IC2_SEG138
=
IC_SEG_ON
;
IC2_SEG118
=
IC_SEG_ON
;
}
else
{
if
((
Get_Current_PageType
()
==
Page_Front_Tpms
)
||
(
Get_Front_FirstLearn_Flag
()
==
1
)
||
(
Get_Front_FirstLearn_Flag
()
==
3
))
{
if
(
FLASH_SYNC_1Hz
)
...
...
@@ -2162,6 +2169,8 @@ void SEG_SET_TPMS_DISPLAY(uint8_t m_Flag, uint16_t m_NUM1, uint16_t m_NUM2, uint
IC2_SEG118
=
IC_SEG_ON
;
}
}
}
else
{
IC2_SEG109
=
IC_SEG_ON
;
...
...
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