Commit 632a329b authored by 李梓源's avatar 李梓源

feat:标定电量检测程序

parent 084032a9
...@@ -591,7 +591,24 @@ void Function_Check_Ctrl(uint32_t cmd) ...@@ -591,7 +591,24 @@ void Function_Check_Ctrl(uint32_t cmd)
{ {
RELAY_VBAT_MCU = 1; RELAY_VBAT_MCU = 1;
RELAY_DC12V_MCU = 1; RELAY_DC12V_MCU = 1;
RELAY_KEY_MCU = 1; left_turn = 1;
if(ACCONOFF_delay_3s <= 30)
{
RELAY_KEY_MCU = 0;
}
else
{
RELAY_KEY_MCU = 1;
}
if(ACCONOFF_delay_3s >= 35 && ACCONOFF_delay_3s <= 60)
{
ONE_START == 1;
}
else
{
ONE_START = 0;
}
break; break;
} }
......
...@@ -10,7 +10,7 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) ...@@ -10,7 +10,7 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
MENU_CHECK_STEP_ADD( ); // MENU_CHECK_STEP_ADD( );
} }
} }
...@@ -18,7 +18,7 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) ...@@ -18,7 +18,7 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
MENU_CHECK_STEP_SUB(); // MENU_CHECK_STEP_SUB();
} }
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS ) else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{ {
...@@ -100,20 +100,20 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent) ...@@ -100,20 +100,20 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
} }
void Key_Operation_SW2(Key_Event_en_t enKeyEvent) void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) // if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ // {
if(MENU_CHECK_STEP == 0) // if(MENU_CHECK_STEP == 0)
{ // {
if(left_turn == 0) // if(left_turn == 0)
{ // {
left_turn = 1; // left_turn = 1;
} // }
else // else
{ // {
left_turn = 0; // left_turn = 0;
} // }
} // }
} // }
} }
void Key_Operation_SW3(Key_Event_en_t enKeyEvent) void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
......
...@@ -335,7 +335,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void) ...@@ -335,7 +335,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
// Recv_Byte1(); // Recv_Byte1();
// } // }
Display_PageNum(); Display_PageNum();
if(MENU_CHECK_STEP == 9) if(MENU_CHECK_STEP == 9 || MENU_CHECK_STEP == 0)
{ {
if(ACCONOFF_delay_3s < 200) if(ACCONOFF_delay_3s < 200)
{ {
......
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