Commit 4d96ec80 authored by 郑萍's avatar 郑萍

feat:转速

parent c350e0ac
......@@ -2577,6 +2577,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
/*转速显示函数*/
static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
{
uint8_t PIC = 0;
if ((Pic_mode == PIC_DAYTIME_Main_CH) || (Pic_mode == PIC_DAYTIME_Main_EN))
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0606_834_199); /* 1000r/min */
......@@ -2603,14 +2604,14 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
if (ESpeedNumber > 0)
{
ESpeedLevel = (ESpeedNumber - 1) / 1000;
for (PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
}
}
else if (ESpeedNumber == 0)
{
}
for (int PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
ESpeedLevel = 0;
}
}
......@@ -2640,14 +2641,14 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
if (ESpeedNumber > 0)
{
ESpeedLevel = (ESpeedNumber - 1) / 1000;
for (PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
}
}
else if (ESpeedNumber == 0)
{
}
for (int PIC = 0; PIC <= ESpeedLevel; PIC++)
{
SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
ESpeedLevel = 0;
}
}
else
......@@ -2689,15 +2690,22 @@ void AMT630H_GUI_BACKGRAND()
AMT630H_GUI_Fuel(2);
AMT630H_GUI_Voltage(123);
AMT630H_GUI_ODO(123456);
if(Get_VechileSpeedValid() == 1)
if (Get_VechileSpeedValid() == 1)
{
AMT630H_GUI_VSpeed(Get_DispVechileSpeed()/10);
AMT630H_GUI_VSpeed(Get_DispVechileSpeed() / 10);
}
else
{
AMT630H_GUI_VSpeed(0);
}
AMT630H_GUI_ESpeed(1234);
// if(Get_EngineValid() == 1)
// {
AMT630H_GUI_ESpeed(Get_DispEngineSpeed());
// }
// else
// {
// AMT630H_GUI_ESpeed(0);
// }
}
void AMT630H_GUI_SETTING()
......
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