Commit 656d06f3 authored by 王雅楠's avatar 王雅楠

🦄 refactor:修改导航界面车速显示效果

parent 6539478d
......@@ -4167,7 +4167,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
}
else if ((10 <= VSpeedNumber))
else if ((10 <= VSpeedNumber) && ( VSpeedNumber < 100))
{
DisplayNumPara.x = 515;
DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
......@@ -4177,7 +4177,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
}
else if (0 <= VSpeedNumber)
else if ((0 <= VSpeedNumber) && ( VSpeedNumber < 10))
{
if (VSpeedNumber == 1)
{
......@@ -4305,7 +4305,7 @@ static void AMT630H_GUI_PhoneConnect_VSpeed(uint16_t VSpeed)
DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
}
else if ((10 <= VSpeedNumber))
else if ((10 <= VSpeedNumber) && (VSpeedNumber < 100))
{
DisplayNumPara.x = 514;
DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 60;
......@@ -4315,7 +4315,7 @@ static void AMT630H_GUI_PhoneConnect_VSpeed(uint16_t VSpeed)
DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
}
else if (0 <= VSpeedNumber)
else if ((0 <= VSpeedNumber) && ( VSpeedNumber < 10))
{
if (VSpeedNumber == 1)
{
......@@ -4969,6 +4969,16 @@ void AMT630H_GUI_ReadPosittion_Display(void)
// SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);/*背景图*/
AMT630H_GUI_PhoneConnect_Light();
AMT630H_GUI_PhoneConnect_TIME(Get_Dis_Hour_Time(), Get_Dis_Minute_Time());
if(VechileSpeed_time < 4)
{
// VechileSpeed_time++;
}
else
{
VechileSpeed_time = 0;
VechileSpeed = Get_DispVechileSpeed() / 10;
}
AMT630H_GUI_PhoneConnect_VSpeed(VechileSpeed);
AMT630H_GUI_PhoneConnect_ESpeed(Get_DispEngineSpeed());
AMT630H_GUI_PhoneConnect_Fuel(Get_CurFuelSetp());
......
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