Commit 9b0fdeac authored by 李俭双's avatar 李俭双

🐞 fix:43285,更改胎压数据处理

parent 19d62bb0
......@@ -41,6 +41,7 @@ void Data_TPMS_Processing_Service ( void )
TPMS.Front_Press_Value = 99;
TPMS.Rear_Press_Value = Rear_TPMS * 275;
TPMS.Rear_Press_Value /= 10 ;
TPMS.Rear_Press_Value /= 102 ;
if(TPMS.Rear_Press_Value > 99)
{
TPMS.Rear_Press_Value = 99;
......@@ -61,6 +62,7 @@ void Data_TPMS_Processing_Service ( void )
TPMS.Rear_Press_Value = 99;
TPMS.Front_Press_Value = Front_TPMS *275 ;
TPMS.Front_Press_Value /= 10 ;
TPMS.Front_Press_Value /= 102 ;
if(TPMS.Front_Press_Value > 99)
{
TPMS.Front_Press_Value = 99;
......@@ -89,6 +91,7 @@ void Data_TPMS_Processing_Service ( void )
TPMS.Rear_TPMS_Valid = 1;
TPMS.Front_Press_Value = Front_TPMS * 275 ;
TPMS.Front_Press_Value /= 10 ;
TPMS.Front_Press_Value /= 102 ;
if(TPMS.Front_Press_Value > 99)
{
TPMS.Front_Press_Value = 99;
......@@ -96,6 +99,7 @@ void Data_TPMS_Processing_Service ( void )
TPMS.Rear_Press_Value = Rear_TPMS * 275;
TPMS.Rear_Press_Value /= 10 ;
TPMS.Rear_Press_Value /= 102 ;
if(TPMS.Rear_Press_Value > 99)
{
TPMS.Rear_Press_Value = 99;
......
......@@ -4,8 +4,8 @@
#include "common.h"
typedef struct
{
uint16_t Front_Press_Value;
uint16_t Rear_Press_Value;
uint32_t Front_Press_Value;
uint32_t Rear_Press_Value;
uint8_t Front_TPMS_Valid;
uint8_t Rear_TPMS_Valid;
uint8_t TPMS_Warning;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment