Commit 0581713b authored by 何锐's avatar 何锐

feat:DV实验检测台初版

parent 062173ea
...@@ -71,23 +71,55 @@ void Function_Check_Ctrl(uint32_t cmd); ...@@ -71,23 +71,55 @@ void Function_Check_Ctrl(uint32_t cmd);
void MENU_CHECK_STEP_ADD(void) void MENU_CHECK_STEP_ADD(void)
{ {
if(jiaoyan == 1) // if(jiaoyan == 1)
{ // {
MENU_CHECK_STEP++; if(MENU_CHECK_STEP == 2)
{
if(MENU_CHECK_STEP > 14) MENU_CHECK_STEP = 10;
}
else if(MENU_CHECK_STEP == 10)
{
MENU_CHECK_STEP = 3;
}
else if(MENU_CHECK_STEP == 4)
{
MENU_CHECK_STEP = 11;
}
else if(MENU_CHECK_STEP == 20)
{
MENU_CHECK_STEP = 5;
}
else if(MENU_CHECK_STEP == 5)
{
MENU_CHECK_STEP = 7;
}
else if(MENU_CHECK_STEP == 7)
{
MENU_CHECK_STEP = 6;
}
else if(MENU_CHECK_STEP == 6)
{
MENU_CHECK_STEP = 8;
}
else if(MENU_CHECK_STEP == 9)
{ {
MENU_CHECK_STEP = 0; MENU_CHECK_STEP = 0;
} }
else
{
MENU_CHECK_STEP++;
}
// if((guangganflag == 2 || guangganflag == 1 ) && guangganflag != 3) // if((guangganflag == 2 || guangganflag == 1 ) && guangganflag != 3)
// { // {
// MENU_CHECK_STEP = 3; // MENU_CHECK_STEP = 3;
// } // }
if(CurrentWrong == 1) // if(CurrentWrong == 1)
{ // {
MENU_CHECK_STEP = 1; // MENU_CHECK_STEP = 1;
} // }
} // }
} }
void MENU_CHECK_STEP_SUB(void) void MENU_CHECK_STEP_SUB(void)
...@@ -996,71 +1028,6 @@ void Function_Check_Ctrl(uint32_t cmd) ...@@ -996,71 +1028,6 @@ void Function_Check_Ctrl(uint32_t cmd)
Bluetoothlight = 0; Bluetoothlight = 0;
break; break;
} }
// case 9:
// {
// // LED3 = 1;
// // LED4 = 1;
// // LINE_OUT_NEG_05 = 0;
// // LINE_jinguang = 1;
// // POWER_CTRL_KL30_Current = 1;
// // POWER_CTRL_KL30 = 1;
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 0;
// break;
// }
// case 10:
// {
// // if(Auto_ONOFF == 0)
// // {
// // LINE_OUT_NEG_01 = 1;
// // LINE_OUT_NEG_04 = 1;
// // }
// // LINE_OUT_NEG_02 = 1;
// // LINE_OUT_NEG_03 = 1;
// // LED3 = 1;
// // LED4 = 1;
// // LINE_OUT_NEG_05 = 0;
// // LINE_jinguang = 1;
// // POWER_CTRL_KL30 = 1;
// // POWER_CTRL_KL30_Current = 1;
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 0;
// break;
// }
// case 11: //下电蓝牙外屏
// {
// // POWER_CTRL_KL30_Current = 1;
// // if(Auto_ONOFF == 0)
// // {
// // LINE_OUT_NEG_01 = 0;
// // }
// // LINE_OUT_NEG_02 = 0;
// // LINE_OUT_NEG_03 = 1;
// // LINE_OUT_NEG_04 = 0;
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 0;
// break;
// }
// case 12:
// {
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 0;
// break;
// }
case 9: case 9:
{ {
if(Auto_ONOFF == 0) if(Auto_ONOFF == 0)
...@@ -1079,27 +1046,135 @@ void Function_Check_Ctrl(uint32_t cmd) ...@@ -1079,27 +1046,135 @@ void Function_Check_Ctrl(uint32_t cmd)
Lowbeam = 1; Lowbeam = 1;
break; break;
} }
// case 14: case 10:
// { {
// Lowbeam = 0; if(Auto_ONOFF == 0)
// LeftturnSignal = 0; {
// highbeam = 0; LINE_OUT_NEG_01 = 1;
// RightturnSignal = 0; LINE_OUT_NEG_04 = 1;
// Bluetoothlight = 1; LINE_OUT_NEG_02 = 1;
// break; LINE_OUT_NEG_03 = 1;
// } }
// case 15: //全上电连蓝牙
// { RightturnSignal = 1;
// LINE_OUT_NEG_05 = 0; LeftturnSignal = 0;
// if(Auto_ONOFF == 0) Bluetoothlight = 1;
// { Positionlight = 0;
// LINE_OUT_NEG_01 = 1; highbeam = 1;
// LINE_OUT_NEG_04 = 1; Lowbeam = 0;
// } break;
// LINE_OUT_NEG_02 = 1; }
// LINE_OUT_NEG_03 = 1;
// break; case 11:
// } {
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 12:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 13:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 14:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 15:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 16:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 17:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 18:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 19:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
case 20:
{
RightturnSignal = 0;
LeftturnSignal = 1;
Bluetoothlight = 1;
Positionlight = 0;
highbeam = 1;
Lowbeam = 0;
break;
}
default: default:
break; break;
} }
......
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