Commit 06a627fb authored by 郑萍's avatar 郑萍

feat:转速修改最大值

parent 32274280
......@@ -64,8 +64,8 @@ void Data_Engine_Speed_Processing_Service ( void )
DataESpeedValid = 1;
ESpeed = 4;//Get_CAN_CH0_ID_101_Sig_ECU_Engine_Speed();
ESpeed /= 4;
if ( ESpeed > 11000 )
ESpeed = 11000;
if ( ESpeed > 12000 )
ESpeed = 12000;
DataESpeedActual = ESpeed;
}
else
......@@ -87,8 +87,8 @@ void Data_Engine_Speed_Processing_Service ( void )
DataESpeedSampler.Cnt = 0;
ESpeed = DataESpeedSampler.Buffer[3];
ESpeed /= 4;
if ( ESpeed > 11000 )
ESpeed = 11000;
if ( ESpeed > 12000 )
ESpeed = 12000;
DataESpeedActual = ESpeed;
}
}
......@@ -221,8 +221,8 @@ void Data_Engine_Speed_Processing_Service ( void )
else
{
DataESPeedDamping.Speed += Delta;
if ( DataESPeedDamping.Speed > 11000 )
DataESPeedDamping.Speed = 11000;
if ( DataESPeedDamping.Speed > 12000 )
DataESPeedDamping.Speed = 12000;
}
}
else //显示值正在向实际值减小,则维持当前方向调节增加速度
......@@ -270,8 +270,8 @@ void Data_Engine_Speed_Processing_Service ( void )
else
{
DataESPeedDamping.Speed += Delta;
if ( DataESPeedDamping.Speed > 11000 )
DataESPeedDamping.Speed = 11000;
if ( DataESPeedDamping.Speed > 12000 )
DataESPeedDamping.Speed = 12000;
}
}
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