Commit c27e4a8f authored by 李梓源's avatar 李梓源

feat:标定电量

parent b2cd7891
...@@ -72,18 +72,18 @@ void Function_Check_Ctrl(uint32_t cmd); ...@@ -72,18 +72,18 @@ 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 > 8) // if(MENU_CHECK_STEP > 8)
{ // {
MENU_CHECK_STEP = 0; // MENU_CHECK_STEP = 0;
} // }
} }
void MENU_CHECK_STEP_SUB(void) void MENU_CHECK_STEP_SUB(void)
{ {
if ( MENU_CHECK_STEP != 0 ) // if ( MENU_CHECK_STEP != 0 )
{ // {
MENU_CHECK_STEP--; // MENU_CHECK_STEP--;
} // }
...@@ -592,20 +592,27 @@ void Function_Check_Ctrl(uint32_t cmd) ...@@ -592,20 +592,27 @@ void Function_Check_Ctrl(uint32_t cmd)
{ {
case 0: case 0:
{ {
if(CHECK_Ctrl_delay <= 10) RELAY_VBAT_MCU = 1;
RELAY_DC12V_MCU = 1;
left_turn = 1;
if(ACCONOFF_delay_3s <= 30)
{ {
RELAY_VBAT_MCU = 0;
RELAY_DC12V_MCU = 0;
RELAY_KEY_MCU = 0; RELAY_KEY_MCU = 0;
} }
else else
{ {
RELAY_VBAT_MCU = 1;
RELAY_DC12V_MCU = 1;
RELAY_KEY_MCU = 1; RELAY_KEY_MCU = 1;
// Aima_SLF(1u, 0x04, 0x1, 1u);
// left_turn = 1;
} }
if(ACCONOFF_delay_3s >= 35 && ACCONOFF_delay_3s <= 60)
{
ONE_START == 1;
}
else
{
ONE_START = 0;
}
break; break;
} }
case 1: case 1:
......
...@@ -108,20 +108,20 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent) ...@@ -108,20 +108,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)
......
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