Commit 84989cbf authored by 郑萍's avatar 郑萍

🐞 fix:56332 【豪进7500TFT】【车速】CAN信号发送车速1-13,再次从13发送车速至1,车速显示错误

parent 46017036
......@@ -321,17 +321,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
}
// 第3步:生成显示车速
if ( (DataVSPeedDamping.Speed >= DataVSpeedHysteresis) || (DataVSPeedDamping.Speed < DATA_VSPEED_HYSTERESIS) )
{
DataVSpeedHysteresis = DataVSPeedDamping.Speed;
}
else
{
if ( DataVSpeedHysteresis - DataVSPeedDamping.Speed >= DATA_VSPEED_HYSTERESIS )
{
DataVSpeedHysteresis = DataVSPeedDamping.Speed;
}
}
DataVSpeedHysteresis = DataVSPeedDamping.Speed;
VSpeedCal = ( uint32_t )DataVSpeedHysteresis;
......
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