Commit da2a7531 authored by 何锐's avatar 何锐

feat:制作老化台程序

parent caf390c3
...@@ -73,7 +73,7 @@ void Function_Check_Ctrl(uint32_t cmd); ...@@ -73,7 +73,7 @@ void Function_Check_Ctrl(uint32_t cmd);
void MENU_CHECK_STEP_ADD(void) void MENU_CHECK_STEP_ADD(void)
{ {
MENU_CHECK_STEP++; MENU_CHECK_STEP++;
if(MENU_CHECK_STEP > 9) if(MENU_CHECK_STEP > 3)
{ {
MENU_CHECK_STEP = 0; MENU_CHECK_STEP = 0;
} }
......
...@@ -52,14 +52,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent) //上下ACC电 ...@@ -52,14 +52,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent) //上下ACC电
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
// if(RELAY_KEY_MCU == 1) if(RELAY_KEY_MCU == 1)
// { {
// RELAY_KEY_MCU = 0; RELAY_KEY_MCU = 0;
// } }
// else else
// { {
// RELAY_KEY_MCU = 1; RELAY_KEY_MCU = 1;
// } }
} }
...@@ -102,19 +102,19 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent) ...@@ -102,19 +102,19 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(Scroll_Wheel < 100) // if(Scroll_Wheel < 100)
{ // {
Scroll_Wheel++; // Scroll_Wheel++;
} // }
else // else
{ // {
Scroll_Wheel = 0; // Scroll_Wheel = 0;
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
// Key_Mode = 1; //左键 // Key_Mode = 1; //左键
backflag = 1; // backflag = 1;
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
...@@ -158,18 +158,18 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) ...@@ -158,18 +158,18 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(Scroll_Wheel > 0) // if(Scroll_Wheel > 0)
{ // {
Scroll_Wheel--; // Scroll_Wheel--;
} // }
else // else
{ // {
Scroll_Wheel = 100; // Scroll_Wheel = 100;
} // }
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
Key_Mode = 2; //右键 // Key_Mode = 2; //右键
} }
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{ {
......
...@@ -1111,34 +1111,23 @@ uint32_t R485_Send_test(void) ...@@ -1111,34 +1111,23 @@ uint32_t R485_Send_test(void)
BCMLED.Sig.FlickerFrequency = 0x00; //频率 BCMLED.Sig.FlickerFrequency = 0x00; //频率
case 0: case 0:
// BCMLED.Sig.Lamp = 0x01; //左转 BCMLED.Sig.Lamp = 0x01; //左转
// BCMLED.Sig.FlickerFrequency = 0x05; //频率 BCMLED.Sig.FlickerFrequency = 0x05; //频率
// if((Key_Mode == 4) || (Key_Mode == 5))
// {
// BCMLED.Sig.HLLamp = 0x03; //远近光
// BCMLED.Sig.AutoLamp = 0x01; //自动大灯
// }
// else
// {
// BCMLED.Sig.HLLamp = 0x00;
// }
// Dashboard.Sig.textbit2 = 0x0A; //车速
// Dashboard.Sig.textbit7 = 0x7F; //P档
// u32sendendflag = R485_Send(0x04, Dashboard.Msg, sizeof(Dashboard.Msg));
break; break;
case 1: case 1:
// BCMLED.Sig.Lamp = 0x00; //左 BCMLED.Sig.Lamp = 0x02; //右
// BCMLED.Sig.FlickerFrequency = 0x00; //频率 BCMLED.Sig.FlickerFrequency = 0x05; //频率
break; break;
case 2: case 2:
BCMLED.Sig.HLLamp = 0x02; //远光
break; break;
case 3: case 3:
// AIMAtest.Sig.PGear = 0; BCMLED.Sig.HLLamp = 0x02; //远光
// u32sendendflag = R485_Send(0x05, AIMAtest.Msg, sizeof(AIMAtest.Msg)); BCMLED.Sig.Lamp = 0x03; //左转
BCMLED.Sig.FlickerFrequency = 0x05; //频率
break; break;
case 4: case 4:
...@@ -1147,9 +1136,6 @@ uint32_t R485_Send_test(void) ...@@ -1147,9 +1136,6 @@ uint32_t R485_Send_test(void)
break; break;
case 5: case 5:
BCMLED.Sig.HLLamp = 0x02; //远光
BCMLED.Sig.Lamp = 0x03; //双闪
BCMLED.Sig.FlickerFrequency = 0x05; //频率
break; break;
case 6: case 6:
......
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