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
1cd7f1c4
Commit
1cd7f1c4
authored
Sep 19, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:62034 450外发异常跳变,胎压数据处理过程会被中断打断,导致外发错误,增加中继变量
parent
2e591b36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+8
-2
No files found.
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
1cd7f1c4
...
@@ -65,6 +65,8 @@ void Can_341_Receive(void)
...
@@ -65,6 +65,8 @@ void Can_341_Receive(void)
Can_341_Flg
=
1
;
Can_341_Flg
=
1
;
}
}
uint32_t
Relaying_Rear_Press_Value
=
0
;
uint32_t
Relaying_Front_Press_Value
=
0
;
void
Data_TPMS_Processing_Service
(
void
)
void
Data_TPMS_Processing_Service
(
void
)
{
{
uint16_t
Front_TPMS
=
0
;
uint16_t
Front_TPMS
=
0
;
...
@@ -516,6 +518,10 @@ void Data_TPMS_Processing_Service ( void )
...
@@ -516,6 +518,10 @@ void Data_TPMS_Processing_Service ( void )
TPMS
.
Rear_Press_Value
=
0
;
TPMS
.
Rear_Press_Value
=
0
;
TPMS
.
TPMS_Warning
=
0
;
TPMS
.
TPMS_Warning
=
0
;
}
}
Relaying_Rear_Press_Value
=
TPMS
.
Rear_Press_Value
;
Relaying_Front_Press_Value
=
TPMS
.
Front_Press_Value
;
}
}
uint32_t
Data_Bar_To_Psi
(
uint32_t
bar
)
uint32_t
Data_Bar_To_Psi
(
uint32_t
bar
)
{
{
...
@@ -594,7 +600,7 @@ uint16_t Get_Rear_TPMS_Sig_Value (void)
...
@@ -594,7 +600,7 @@ uint16_t Get_Rear_TPMS_Sig_Value (void)
uint16_t
Get_Rear_TPMS_TX
(
void
)
uint16_t
Get_Rear_TPMS_TX
(
void
)
{
{
uint16_t
value
=
0
;
uint16_t
value
=
0
;
value
=
(
uint16_t
)(
Data_Bar_To_Psi
(
TPMS
.
Rear_Press_Value
)
/
100
);
value
=
(
uint16_t
)(
Data_Bar_To_Psi
(
Relaying_
Rear_Press_Value
)
/
100
);
if
(
value
>
990
)
if
(
value
>
990
)
{
{
value
=
990
;
value
=
990
;
...
@@ -604,7 +610,7 @@ uint16_t Get_Rear_TPMS_TX (void)
...
@@ -604,7 +610,7 @@ uint16_t Get_Rear_TPMS_TX (void)
uint16_t
Get_Front_TPMS_TX
(
void
)
uint16_t
Get_Front_TPMS_TX
(
void
)
{
{
uint16_t
value
=
0
;
uint16_t
value
=
0
;
value
=
(
uint16_t
)(
Data_Bar_To_Psi
(
TPMS
.
Front_Press_Value
)
/
100
);
value
=
(
uint16_t
)(
Data_Bar_To_Psi
(
Relaying_
Front_Press_Value
)
/
100
);
if
(
value
>
990
)
if
(
value
>
990
)
{
{
value
=
990
;
value
=
990
;
...
...
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