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
e0a36c2a
Commit
e0a36c2a
authored
8 months ago
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:55594 胎压外发最大值为100psi
parent
9f506bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+22
-4
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
e0a36c2a
...
...
@@ -102,6 +102,8 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
{
CANMsg450Union
*
p450
;
uint8_t
i
=
0
;
uint16_t
u16FrontTpms
=
0
;
uint16_t
u16RearTpms
=
0
;
p450
=
(
CANMsg450Union
*
)
CopyData
;
if
(
p450
!=
(
void
*
)
0
)
...
...
@@ -120,8 +122,16 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
}
else
{
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
((
Get_Front_TPMS_TX
()
+
146
)
<=
1000U
)
{
u16FrontTpms
=
(
Get_Front_TPMS_TX
()
+
146
);
}
else
{
u16FrontTpms
=
1000U
;
}
p450
->
Sig
.
Front_Pressure_TX_H
=
(
u16FrontTpms
>>
8
)
&
0xFF
;
p450
->
Sig
.
Front_Pressure_TX_L
=
(
u16FrontTpms
)
&
0xFF
;
}
if
(
Get_Rear_TPMS_Sig_Vaild
()
==
0
\
||
Get_TPMS_Rear_Learn
()
!=
2
...
...
@@ -133,8 +143,16 @@ void Can_Set_Buff_450(canlib_uint8_t CopyData[])
}
else
{
p450
->
Sig
.
Rear_Pressure_TX_H
=
((
Get_Rear_TPMS_TX
()
+
146
)
>>
8
)
&
0xFF
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
(
Get_Rear_TPMS_TX
()
+
146
)
&
0xFF
;
if
((
Get_Rear_TPMS_TX
()
+
146
)
<=
1000U
)
{
u16RearTpms
=
(
Get_Rear_TPMS_TX
()
+
146
);
}
else
{
u16RearTpms
=
1000U
;
}
p450
->
Sig
.
Rear_Pressure_TX_H
=
(
u16RearTpms
>>
8
)
&
0xFF
;
p450
->
Sig
.
Rear_Pressure_TX_L
=
(
u16RearTpms
)
&
0xFF
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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