Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈家乐
jiancetai
Commits
0581713b
Commit
0581713b
authored
Jan 30, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:DV实验检测台初版
parent
062173ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
972 additions
and
310 deletions
+972
-310
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+171
-96
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+422
-99
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+379
-115
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
0581713b
...
...
@@ -71,23 +71,55 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
if
(
jiaoyan
==
1
)
// if(jiaoyan == 1)
// {
if
(
MENU_CHECK_STEP
==
2
)
{
MENU_CHECK_STEP
++
;
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
;
}
else
{
MENU_CHECK_STEP
++
;
}
// if((guangganflag == 2 || guangganflag == 1 ) && guangganflag != 3)
// {
// MENU_CHECK_STEP = 3;
// }
if
(
CurrentWrong
==
1
)
{
MENU_CHECK_STEP
=
1
;
}
}
//
if(CurrentWrong == 1)
//
{
//
MENU_CHECK_STEP = 1;
//
}
//
}
}
void
MENU_CHECK_STEP_SUB
(
void
)
...
...
@@ -996,71 +1028,6 @@ void Function_Check_Ctrl(uint32_t cmd)
Bluetoothlight
=
0
;
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
:
{
if
(
Auto_ONOFF
==
0
)
...
...
@@ -1079,27 +1046,135 @@ void Function_Check_Ctrl(uint32_t cmd)
Lowbeam
=
1
;
break
;
}
// case 14:
// {
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 1;
// break;
// }
// case 15: //全上电连蓝牙
// {
// LINE_OUT_NEG_05 = 0;
// if(Auto_ONOFF == 0)
// {
// LINE_OUT_NEG_01 = 1;
// LINE_OUT_NEG_04 = 1;
// }
// LINE_OUT_NEG_02 = 1;
// LINE_OUT_NEG_03 = 1;
// 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
;
}
RightturnSignal
=
1
;
LeftturnSignal
=
0
;
Bluetoothlight
=
1
;
Positionlight
=
0
;
highbeam
=
1
;
Lowbeam
=
0
;
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:
break
;
}
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
0581713b
...
...
@@ -4925,7 +4925,7 @@ void Display_Version_Info(uint32_t ON_OFF)
// TFT_LCD_Draw_Bmp(3, 160, ( uint8_t * )gImage_Alarm_12_WordX6_Y165); //24脚输出占空比
// TFT_LCD_Draw_Bmp(210, 160, ( uint8_t * )gImage_Alarm_13_ImageX222_Y166); //%
TFT_LCD_Draw_Bmp(3, 290, ( uint8_t * )gImage_gImage_checkVX6_Y165 ); //检测台版本号
uint8_t mbuff [7] = {2,6,0,1,
1,5
,0xff};
uint8_t mbuff [7] = {2,6,0,1,
3,0
,0xff};
General_Number_Disp(mbuff, 160, 290);
}
...
...
@@ -5385,7 +5385,7 @@ void Display_Send_Vspead(uint8_t menu)
break;
case 2:
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_greenX6_Y165);
Battery_evel =
1
;
Battery_evel =
5
;
VSpeed_val = 0;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
...
...
@@ -5397,7 +5397,8 @@ void Display_Send_Vspead(uint8_t menu)
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_General_Digit_Display(0, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// GUI_General_Digit_Display(0, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "0", Letter_Num_11, PCodeText_Space_size);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
...
...
@@ -5433,8 +5434,8 @@ void Display_Send_Vspead(uint8_t menu)
case 3:
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_orange1X6_Y16);
Battery_evel = 10
0
;
VSpeed_val =
99
;
Battery_evel = 10;
VSpeed_val =
20
;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_S);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_P);
...
...
@@ -5443,7 +5444,7 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_T);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_
General_Digit_Display(100, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5
);
GUI_
Display_Version_Code_Service(155, 40+25+25+25, "20", Letter_Num_11, PCodeText_Space_size
);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
...
...
@@ -5473,8 +5474,8 @@ void Display_Send_Vspead(uint8_t menu)
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 0;
VSpeed_val =
99
;
Battery_evel =
2
0;
VSpeed_val =
30
;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
...
...
@@ -5484,7 +5485,7 @@ void Display_Send_Vspead(uint8_t menu)
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_
General_Digit_Display(50, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5
);
GUI_
Display_Version_Code_Service(155, 40+25+25+25, "30", Letter_Num_11, PCodeText_Space_size
);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
...
...
@@ -5510,7 +5511,7 @@ void Display_Send_Vspead(uint8_t menu)
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
Battery_evel = 0;
Battery_evel =
10
0;
VSpeed_val = 99;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
...
...
@@ -5522,7 +5523,7 @@ void Display_Send_Vspead(uint8_t menu)
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
GUI_
General_Digit_Display(100, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5
);
GUI_
Display_Version_Code_Service(155, 40+25+25+25, "-50", Letter_Num_11, PCodeText_Space_size
);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y02);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y16);
...
...
@@ -5583,105 +5584,427 @@ void Display_Send_Vspead(uint8_t menu)
break;
case 8:
// Battery_evel = 0;
// VSpeed_val = 99;
// TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_T);
// TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_F);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_A);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// GUI_General_Digit_Display(100, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
break;
// case 9:
// // GUI_Display_Version_Code_Service(160, 40+25, "99", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
// Battery_evel = 0;
// VSpeed_val = 99;
// TFT_LCD_Draw_Bmp(3, 50, ( uint8_t * )NO_A);
// // TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
// // TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_T);
// // TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_F);
// // TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_A);
// // TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "19-09", Letter_Num_11, PCodeText_Space_size);
// // TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// // TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
// // TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// // TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// // TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
// // GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
// break;
// case 10:
// // GUI_Display_Version_Code_Service(160, 40+25, "100", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
// Battery_evel = 100;
// VSpeed_val = 99;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "00-00", Letter_Num_11, PCodeText_Space_size);
// // TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// // TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// // TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// // TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// // TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(3, 50, ( uint8_t * )NO_P);
// // GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
// break;
// case 11:
// // TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
// TFT_LCD_Draw_Bmp(3, 50, ( uint8_t * )NO_R);
// break;
// case 12:
// // POWER_CTRL_KL30 = 0u; //B+
// // POWER_CTRL_KL15 = 0u; //KL15
// // CAN_Msg_Tx_Enable = 0u;
// //Diag_Info_Init( );
// //Display_Init( );
// //Display_Version_Info(0);
// //Send_Init();
// //Send_ODO_Init();
// // HW_Static_Current_Check(1);
// TFT_LCD_Draw_Bmp(3, 50, ( uint8_t * )NO_H);
// break;
case 9:
// GUI_Display_Version_Code_Service(25, 20, "Please enter password ", Letter_Num_11, PCodeText_Space_size);
Battery_evel = 0;
Battery_evel =
10
0;
VSpeed_val = 99;
GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
break;
// case 14:
// // blename[4] = 0xFF;
// // if((blename[0]+blename[1]+blename[2]+blename[3]) != 0)
// // {
// // General_Number_Disp(blename, 3, 165);
// // }
// Battery_evel = 0;
// VSpeed_val = 99;
// // memset(blename,0xFF,5);
// // Display_TFT_Clear();
// break;
// case 15:
// blename[4] = 0xFF;
// GUI_Display_Version_Code_Service(3, 150, "BT Name is ", Letter_Num_11, PCodeText_Space_size);
// if(((blename[0]+blename[1]+blename[2]+blename[3]) != 0) && (blename[0] != 0xFF) && (blename[1] != 0xFF)&& (blename[2] != 0xFF)&& (blename[3] != 0xFF))
// {
// General_Number_Disp(blename, 110, 150);
// }
// break;
case 10:
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_greenX6_Y165);
Battery_evel = 5;
VSpeed_val = 10;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_T);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_A);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "10", Letter_Num_11, PCodeText_Space_size);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y12);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
// TFT_LCD_Draw_Bmp(3+40, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+40+50, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y03);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+55, ( uint8_t * )gImage_gImage_READY1X6_Y16);
TFT_LCD_Draw_Bmp(3+70, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+70, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+60, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
if(youzhuanget == 1)
{
TFT_LCD_Draw_Bmp(3+40+60+60+30, 40+25+25+25+25+25+25, ( uint8_t * )gImage_cuo11 );
}
else
{
TFT_LCD_Draw_Bmp(3+40+60+60+30, 40+25+25+25+25+25+25, ( uint8_t * )gImage_dui11 );
}
break;
case 11:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 30;
VSpeed_val = 40;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "40", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 12:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 40;
VSpeed_val = 50;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "50", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 13:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 50;
VSpeed_val = 60;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "60", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 14:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 60;
VSpeed_val = 70;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "70", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 15:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 70;
VSpeed_val = 80;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "80", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 16:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 80;
VSpeed_val = 90;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "90", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 17:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 90;
VSpeed_val = 99;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "100", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 18:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 100;
VSpeed_val = 99;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "-10", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 19:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 100;
VSpeed_val = 99;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "-20", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 20:
// TFT_LCD_Draw_Bmp(100,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
Battery_evel = 100;
VSpeed_val = 99;
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "-30", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
default:
MENU_CHECK_STEP = 0;
break;
}
if((menu > 1) && (menu <
10
))
if((menu > 1) && (menu <
21
))
{
if(((KeyStep != 3) && (menu == 6)) || (menu == 8))
{
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
0581713b
...
...
@@ -128,44 +128,84 @@ uint32_t R485_Send_0xD1(void)
break
;
case
2
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x0
2
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x0
A
;
//电量
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
break
;
case
3
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0xC8
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
20
;
//电量
break
;
case
4
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x0
0
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
4
0
;
//电量
break
;
case
5
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x03
;
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
200
;
//电量
break
;
case
6
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
1
00
;
//电量
break
;
case
7
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
1
00
;
//电量
break
;
// case 8:
// R485_IDD1h.Sig.MainBatteryQuantity = 0x00; //电量
// break;
case
8
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
1
00
;
//电量
break
;
case
9
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
1
00
;
//电量
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
break
;
case
10
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
10
;
//电量
break
;
case
11
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
60
;
//电量
break
;
case
12
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
80
;
//电量
break
;
case
13
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
100
;
//电量
break
;
case
14
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
120
;
//电量
break
;
case
15
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
140
;
//电量
break
;
case
16
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
160
;
//电量
break
;
case
17
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
180
;
//电量
break
;
case
18
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
200
;
//电量
break
;
case
19
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
200
;
//电量
break
;
case
20
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
200
;
//电量
break
;
default:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//低电量指示灯
...
...
@@ -205,41 +245,41 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
BrakeSwitchFeedback
=
0x00
;
//ready灯熄灭
if
(
SideStayflag
==
0
)
{
R485_IDD2h
.
Sig
.
SideStaySenseSetFeedback
=
0x00
;
//菜单边撑感应功能设置反馈功能
}
else
if
(
SideStayflag
==
1
)
{
R485_IDD2h
.
Sig
.
SideStaySenseSetFeedback
=
0x01
;
//菜单边撑感应功能设置反馈功能
}
//
if(SideStayflag == 0)
//
{
//
R485_IDD2h.Sig.SideStaySenseSetFeedback = 0x00; //菜单边撑感应功能设置反馈功能
//
}
//
else if(SideStayflag == 1)
//
{
//
R485_IDD2h.Sig.SideStaySenseSetFeedback = 0x01; //菜单边撑感应功能设置反馈功能
//
}
if
(
TCSflag
==
0
)
{
R485_IDD2h
.
Sig
.
TCSDefined
=
0x00
;
//菜单TCS功能设置反馈功能
}
else
if
(
TCSflag
==
1
)
{
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
//菜单TCS功能设置反馈功能
}
//
if(TCSflag == 0)
//
{
//
R485_IDD2h.Sig.TCSDefined = 0x00; //菜单TCS功能设置反馈功能
//
}
//
else if(TCSflag == 1)
//
{
//
R485_IDD2h.Sig.TCSDefined = 0x01; //菜单TCS功能设置反馈功能
//
}
if
(
SlopeDescentflag
==
0
)
{
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x00
;
//菜单陡坡缓降功能设置反馈功能
}
else
if
(
SlopeDescentflag
==
1
)
{
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//菜单陡坡缓降功能设置反馈功能
}
//
if(SlopeDescentflag == 0)
//
{
//
R485_IDD2h.Sig.SlopeDescentFunctionStatus = 0x00; //菜单陡坡缓降功能设置反馈功能
//
}
//
else if(SlopeDescentflag == 1)
//
{
//
R485_IDD2h.Sig.SlopeDescentFunctionStatus = 0x01; //菜单陡坡缓降功能设置反馈功能
//
}
if
(
RampParkflag
==
0
)
{
R485_IDD2h
.
Sig
.
RampParkedSetFeedback
=
0x00
;
//菜单边撑感应功能设置反馈功能
}
else
if
(
RampParkflag
==
1
)
{
R485_IDD2h
.
Sig
.
RampParkedSetFeedback
=
0x01
;
//菜单边撑感应功能设置反馈功能
}
//
if(RampParkflag == 0)
//
{
//
R485_IDD2h.Sig.RampParkedSetFeedback = 0x00; //菜单边撑感应功能设置反馈功能
//
}
//
else if(RampParkflag == 1)
//
{
//
R485_IDD2h.Sig.RampParkedSetFeedback = 0x01; //菜单边撑感应功能设置反馈功能
//
}
if
(
clearOdoFlag
==
0
)
{
...
...
@@ -249,24 +289,24 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
5
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
3A
;
//功率
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
0
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
00
;
//功率
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x01
;
//ready灯熄灭
break
;
case
1
:
case
1
:
//第一步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
5
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
3A
;
//功率
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
0
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
00
;
//功率00%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//档位FREE
break
;
case
2
:
case
2
:
//第二步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
...
...
@@ -274,7 +314,9 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x00
;
//功率00%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//档位TTFAR
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//档位TTFAR
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x01
;
//车速档位P档
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
...
...
@@ -286,12 +328,12 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
break
;
case
3
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
DE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速99
case
3
:
//第四步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
92
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
0
;
//车速20
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
E
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
AA
;
//功率10
0%
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
5
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
62
;
//功率2
0%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
...
...
@@ -311,12 +353,12 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
break
;
case
4
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
E
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速6
0
case
4
:
//第五步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
C
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
0
;
//车速3
0
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
B4
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
30
;
//负50
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
7A
;
//频率30%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
...
...
@@ -334,12 +376,14 @@ uint32_t R485_Send_0xD2(void)
RampParkedStatecounter
=
0
;
break
;
case
5
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
E
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速
60
case
5
:
//第16步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速
99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0E
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0xAA
;
//功率100%
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x64
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
44
;
//负50
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
...
...
@@ -356,27 +400,26 @@ uint32_t R485_Send_0xD2(void)
}
break
;
case
6
:
case
6
:
//第17步
RampParkedStatecounter
=
0
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
E
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速
80
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速
99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
C8
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x2F
;
//负50
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收10格
break
;
case
7
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
E
;
case
7
:
//第18步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0E
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0xAA
;
//功率100%
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收50格
...
...
@@ -384,53 +427,24 @@ uint32_t R485_Send_0xD2(void)
// R485_IDD2h.Sig.ClaudicationPatternFeedback = 0x01; //龟速行驶
break
;
case
8
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
E
;
case
8
:
//第19步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD
6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
E
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0xAA
;
//功
率100%
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频
率100%
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收100格
break
;
// case 9:
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
// R485_IDD2h.Sig.ParkinFeedback = 0x00;
// R485_IDD2h.Sig.SpeedGear = 0x00; //档位-助力推行
// break;
// case 10:
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
// R485_IDD2h.Sig.SpeedGear = 0x04;
// R485_IDD2h.Sig.ParkinFeedback = 0x01; //驻车挡位P档
// break;
// case 11:
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
// R485_IDD2h.Sig.SpeedGear = 0x04;
// R485_IDD2h.Sig.ParkinFeedback = 0x00;
// R485_IDD2h.Sig.ReverseModeFeedback = 0x01; //倒挡模式
// break;
// case 12:
// R485_IDD2h.Sig.RampParkedState = 0x01; //坡道驻停
// break;
case
9
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速99
case
9
:
//第20步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
C8
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x2F
;
//电流为负
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频率100%
R485_IDD2h
.
Sig
.
CruiseModeFeedback
=
0x01
;
//巡航灯
...
...
@@ -451,6 +465,256 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
break
;
case
10
:
//第三步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x49
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
74
;
//功率10%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//档位TTFAR
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
break
;
case
11
:
//第六步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x25
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x01
;
//车速40
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
146
;
//频率40%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
12
:
//第七步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x6F
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x01
;
//车速50
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频率50%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
13
:
//第八步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xB8
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x01
;
//车速60
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
194
;
//频率60%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
14
:
//第九步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x01
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速70
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
218
;
//频率70%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
15
:
//第10步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x4B
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速80
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
242
;
//频率80%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
16
:
//11步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x94
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速90
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
158
;
//频率90%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
17
:
//12步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
170
;
//频率100%
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
18
:
//13步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
26
;
//负10
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
19
:
//14步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
2
;
//负20
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
20
:
//第15步
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xD6
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0A
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
14
;
//负30
R485_IDD2h
.
Sig
.
RecuperationFeedbackDefined
=
0x01
;
//能量回收功能设置反馈为1
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSUserDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
default:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment