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
TY
TianYing_ty100
Commits
5b57d322
Commit
5b57d322
authored
Jun 25, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:47698 【天鹰TY200】【胎压】胎压发送未学习信号超过一分钟后,保持上一状态,在发送信号变成学习中,仪表胎压不变成-.-闪烁
parent
8ff9aa46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+21
-1
Data_TPMS.h
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
+3
-0
No files found.
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
5b57d322
...
@@ -75,6 +75,11 @@ void Data_TPMS_Processing_Service ( void )
...
@@ -75,6 +75,11 @@ void Data_TPMS_Processing_Service ( void )
}
}
else
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
((
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
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
!=
CAN_SIG_LOST
)
...
@@ -95,6 +100,11 @@ void Data_TPMS_Processing_Service ( void )
...
@@ -95,6 +100,11 @@ void Data_TPMS_Processing_Service ( void )
}
}
else
if
(
TPMS
.
TPMS_Front_Learn
==
0x1
)
else
if
(
TPMS
.
TPMS_Front_Learn
==
0x1
)
{
{
if
(
TPMS
.
TPMS_Front_Timeclean
==
0
)
{
LearnTime_Count
=
0
;
}
TPMS
.
TPMS_Front_Timeclean
=
1
;
if
(
LearnTime_Count
<=
6000
)
if
(
LearnTime_Count
<=
6000
)
{
{
LearnTime_Count
++
;
LearnTime_Count
++
;
...
@@ -152,6 +162,11 @@ void Data_TPMS_Processing_Service ( void )
...
@@ -152,6 +162,11 @@ void Data_TPMS_Processing_Service ( void )
}
}
else
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
((
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
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
!=
CAN_SIG_LOST
)
...
@@ -178,6 +193,11 @@ void Data_TPMS_Processing_Service ( void )
...
@@ -178,6 +193,11 @@ void Data_TPMS_Processing_Service ( void )
}
}
else
else
{
{
if
(
TPMS
.
TPMS_Rear_Timeclean
==
0
)
{
LearnTime_Count1
=
0
;
}
TPMS
.
TPMS_Rear_Timeclean
=
1
;
if
((
MenuData
.
TPMS_Rear_Learn
!=
0x2
)
&&
(
MenuData
.
TPMS_Rear_Learn
!=
0x3
)
)
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
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
!=
CAN_SIG_LOST
)
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
View file @
5b57d322
...
@@ -16,6 +16,9 @@ typedef struct __attribute__((aligned(4)))
...
@@ -16,6 +16,9 @@ typedef struct __attribute__((aligned(4)))
uint8_t
TPMS_Front_FirstLearn_Flag
;
uint8_t
TPMS_Front_FirstLearn_Flag
;
uint8_t
TPMS_Rear_FirstLearn_Flag
;
uint8_t
TPMS_Rear_FirstLearn_Flag
;
uint8_t
TPMS_Front_Timeclean
;
uint8_t
TPMS_Rear_Timeclean
;
}
_TPMS_Display
;
}
_TPMS_Display
;
typedef
enum
typedef
enum
{
{
...
...
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