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
3e3a1bc4
Commit
3e3a1bc4
authored
Jul 05, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:胎压外发修改
parent
164f8179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+11
-11
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
3e3a1bc4
...
@@ -2,7 +2,12 @@
...
@@ -2,7 +2,12 @@
#include "Components.h"
#include "Components.h"
#include "Application.h"
#include "Application.h"
uint16_t
CAN_TX_Count
=
0
;
extern
uint8_t
Tpms_TX_Flag
;
void
CAN_TX_Count_Init
(
void
)
{
CAN_TX_Count
=
0
;
}
void
Can_Set_Buff_220
(
canlib_uint8_t
CopyData
[])
void
Can_Set_Buff_220
(
canlib_uint8_t
CopyData
[])
{
{
CANMsg220Union
*
p220
;
CANMsg220Union
*
p220
;
...
@@ -106,8 +111,8 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
...
@@ -106,8 +111,8 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
}
}
else
else
{
{
p450
->
Sig
.
Front_Pressure_TX_H
=
(
Get_Front_TPMS_TX
(
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Front_Pressure_TX_H
=
(
(
Get_Front_TPMS_TX
()
+
146
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Front_Pressure_TX_L
=
Get_Front_TPMS_TX
(
)
&
0xFF
;
p450
->
Sig
.
Front_Pressure_TX_L
=
(
Get_Front_TPMS_TX
()
+
146
)
&
0xFF
;
}
}
if
(
MenuData
.
TPMS_Rear_Learn
==
0
)
if
(
MenuData
.
TPMS_Rear_Learn
==
0
)
{
{
...
@@ -116,19 +121,14 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
...
@@ -116,19 +121,14 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
}
}
else
else
{
{
p450
->
Sig
.
Rear_Pressure_TX_H
=
(
Get_Rear_TPMS_TX
(
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Rear_Pressure_TX_H
=
(
(
Get_Rear_TPMS_TX
()
+
146
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
Get_Rear_TPMS_TX
(
)
&
0xFF
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
(
Get_Rear_TPMS_TX
()
+
146
)
&
0xFF
;
}
}
}
}
}
}
uint16_t
CAN_TX_Count
;
extern
uint8_t
Tpms_TX_Flag
;
void
CAN_TX_Count_Init
(
void
)
{
CAN_TX_Count
=
0
;
}
void
Can_Set_Buff_580
(
canlib_uint8_t
CopyData
[])
void
Can_Set_Buff_580
(
canlib_uint8_t
CopyData
[])
{
{
CANMsg580Union
*
p580
;
CANMsg580Union
*
p580
;
...
...
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