Commit 0b97e47d authored by 梁百峰's avatar 梁百峰

feat:白天,夜晚模式亮度分开外发

parent f9da1ca1
......@@ -535,16 +535,56 @@ void Can_Set_Buff_18D00017(canlib_uint8_t CopyData [])
p18D00017 = ( CANMsg18D00017Union * )CopyData;
if ( p18D00017 != ( void * )0 )
{
if(Get_TelltalesLedSts(m_LED_Park_Lamp) == 1)
if((Get_TelltalesLedSts(m_LED_Park_Lamp) == 1) || (Get_TelltalesLedSts(m_LED_High_Lamp) == 1))
{
if(g_Light.Duty == 150)
if(g_nightLight.Duty == 100)
{
IC_ILLUMINATION = 15;
IC_ILLUMINATION = 10;
}
else if(g_Light.Duty == 200)
else if(g_nightLight.Duty == 200)
{
IC_ILLUMINATION = 20;
}
else if(g_nightLight.Duty == 250)
{
IC_ILLUMINATION = 27;
}
else if(g_nightLight.Duty == 300)
{
IC_ILLUMINATION = 35;
}
else if(g_nightLight.Duty == 350)
{
IC_ILLUMINATION = 45;
}
else if(g_nightLight.Duty == 400)
{
IC_ILLUMINATION = 58;
}
else if(g_nightLight.Duty == 450)
{
IC_ILLUMINATION = 73;
}
else if(g_nightLight.Duty == 500)
{
IC_ILLUMINATION = 100;
}
else
{
IC_ILLUMINATION = 0;
}
}
else
{
if(g_Light.Duty == 100)
{
IC_ILLUMINATION = 10;
}
else if(g_Light.Duty == 200)
{
IC_ILLUMINATION = 20;
}
else if(g_Light.Duty == 250)
{
IC_ILLUMINATION = 27;
......@@ -574,10 +614,6 @@ void Can_Set_Buff_18D00017(canlib_uint8_t CopyData [])
IC_ILLUMINATION = 0;
}
}
else
{
IC_ILLUMINATION = 0;
}
p18D00017->Sig.ILLUMINATION = (IC_ILLUMINATION*10)/4;
}
}
......
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