Commit 32274280 authored by 郑萍's avatar 郑萍

feat:车速修改最大值和实际车速显示

parent 4f36d69e
......@@ -253,8 +253,8 @@ void Data_Vehicle_Speed_Processing_Service(void)
else
{
DataVSPeedDamping.Speed += Delta;
if ( DataVSPeedDamping.Speed > 1200 )
DataVSPeedDamping.Speed = 1200;
if ( DataVSPeedDamping.Speed > 1990 )
DataVSPeedDamping.Speed = 1990;
}
}
else // 显示值正在向实际值减小,则维持当前方向调节增加速度
......@@ -302,8 +302,8 @@ void Data_Vehicle_Speed_Processing_Service(void)
else
{
DataVSPeedDamping.Speed += Delta;
if ( DataVSPeedDamping.Speed > 1200 )
DataVSPeedDamping.Speed = 1200;
if ( DataVSPeedDamping.Speed > 1990 )
DataVSPeedDamping.Speed = 1990;
}
}
else // 显示值当前是减小方向
......@@ -338,7 +338,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
if ( DataVSpeedValid )
{
VSpeedCal *= 108;
VSpeedCal *= 105;
VSpeedCal /= 100;
if((VSpeedCal % 10) >= 5)
{
......@@ -368,18 +368,18 @@ uint16_t Get_DispVechileSpeed(void)
uint16_t Vspeed = 0;
if(Get_Dis_Unit() == 0) /* KM */
{
if ( DataVSpeedDisp >= 1200 )
if ( DataVSpeedDisp >= 1990 )
{
DataVSpeedDisp = 1200;
DataVSpeedDisp = 1990;
}
Vspeed = DataVSpeedDisp;
}
else //if (Get_Dis_Unit() == 1) /* MILE */
{
Vspeed = Data_Km_To_Mile(DataVSpeedDisp);
if ( Vspeed >= 750 )
if ( Vspeed >= 1230 )
{
Vspeed = 750;
Vspeed = 1230;
}
}
// else
......
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