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
0b0df01e
Commit
0b0df01e
authored
Nov 05, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:打点功能基本完成
parent
ffa5a7a2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
498 additions
and
611 deletions
+498
-611
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+139
-147
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+167
-335
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+6
-1
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+114
-124
R485_Communication_Matrix.h
...est_bench/source/Appliciation/R485_Communication_Matrix.h
+72
-4
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
0b0df01e
...
@@ -628,7 +628,7 @@ uint8_t delaytime = 0;
...
@@ -628,7 +628,7 @@ uint8_t delaytime = 0;
uint8_t
delayresult
=
0
;
uint8_t
delayresult
=
0
;
uint8_t
TimeDelay_3s
(
void
)
uint8_t
TimeDelay_3s
(
void
)
{
{
if
(
MENU_CHECK_STEP
==
14
)
//光感步骤
if
(
MENU_CHECK_STEP
==
6
)
//光感步骤
{
{
if
(
delaytime
<=
30
)
if
(
delaytime
<=
30
)
{
{
...
@@ -759,35 +759,25 @@ void Function_Check_Ctrl(uint32_t cmd)
...
@@ -759,35 +759,25 @@ void Function_Check_Ctrl(uint32_t cmd)
{
{
RightturnSignal
=
0
;
RightturnSignal
=
0
;
LeftturnSignal
=
1
;
LeftturnSignal
=
1
;
Bluetoothlight
=
0
;
Bluetoothlight
=
1
;
Positionlight
=
0
;
Positionlight
=
0
;
highbeam
=
0
;
highbeam
=
1
;
Lowbeam
=
0
;
Lowbeam
=
0
;
break
;
break
;
}
}
case
4
:
case
4
:
{
{
RightturnSignal
=
0
;
RightturnSignal
=
0
;
LeftturnSignal
=
0
;
LeftturnSignal
=
1
;
Bluetoothlight
=
0
;
Bluetoothlight
=
1
;
Positionlight
=
0
;
Positionlight
=
0
;
highbeam
=
0
;
highbeam
=
1
;
Lowbeam
=
1
;
Lowbeam
=
0
;
break
;
break
;
}
}
case
5
:
case
5
:
{
{
RightturnSignal
=
1
;
LeftturnSignal
=
1
;
Bluetoothlight
=
0
;
Positionlight
=
0
;
highbeam
=
0
;
Lowbeam
=
0
;
break
;
}
case
6
:
{
if
(
Auto_ONOFF
==
0
)
if
(
Auto_ONOFF
==
0
)
{
{
LINE_OUT_NEG_01
=
1
;
LINE_OUT_NEG_01
=
1
;
...
@@ -801,137 +791,11 @@ void Function_Check_Ctrl(uint32_t cmd)
...
@@ -801,137 +791,11 @@ void Function_Check_Ctrl(uint32_t cmd)
Bluetoothlight
=
0
;
Bluetoothlight
=
0
;
Positionlight
=
1
;
Positionlight
=
1
;
highbeam
=
0
;
highbeam
=
0
;
Lowbeam
=
0
;
break
;
}
case
7
:
{
RightturnSignal
=
0
;
LeftturnSignal
=
0
;
Bluetoothlight
=
0
;
Positionlight
=
0
;
highbeam
=
0
;
Lowbeam
=
0
;
break
;
}
// case 8:
// {
// 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 = 0;
// LeftturnSignal = 0;
// Bluetoothlight = 0;
// Positionlight = 0;
// highbeam = 0;
// Lowbeam = 0;
// break;
// }
case
8
:
{
// LED3 = 0;
// LINE_OUT_NEG_05 = 1;
// LINE_jinguang = 0;
// LED4 = 0;
// POWER_CTRL_KL30_Current = 0;
// POWER_CTRL_KL30 = 0;
Lowbeam
=
0
;
LeftturnSignal
=
0
;
highbeam
=
0
;
RightturnSignal
=
0
;
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
13
:
{
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
=
1
;
Bluetoothlight
=
1
;
Positionlight
=
1
;
highbeam
=
1
;
Lowbeam
=
1
;
Lowbeam
=
1
;
break
;
break
;
}
}
case
14
:
case
6
:
{
{
//密码认证
//密码认证
if
(
KeyStep
==
3
)
if
(
KeyStep
==
3
)
{
{
...
@@ -967,13 +831,141 @@ void Function_Check_Ctrl(uint32_t cmd)
...
@@ -967,13 +831,141 @@ void Function_Check_Ctrl(uint32_t cmd)
}
}
}
}
RightturnSignal
=
0
;
LeftturnSignal
=
0
;
Bluetoothlight
=
0
;
Positionlight
=
1
;
highbeam
=
0
;
Lowbeam
=
0
;
break
;
}
case
7
:
{
if
(
Auto_ONOFF
==
0
)
{
LINE_OUT_NEG_01
=
0
;
LINE_OUT_NEG_04
=
0
;
}
LINE_OUT_NEG_02
=
1
;
LINE_OUT_NEG_03
=
1
;
RightturnSignal
=
0
;
LeftturnSignal
=
0
;
Bluetoothlight
=
1
;
Positionlight
=
0
;
highbeam
=
0
;
Lowbeam
=
0
;
break
;
}
case
8
:
{
if
(
Auto_ONOFF
==
0
)
{
LINE_OUT_NEG_01
=
1
;
LINE_OUT_NEG_04
=
1
;
}
LINE_OUT_NEG_02
=
1
;
LINE_OUT_NEG_03
=
1
;
Lowbeam
=
0
;
Lowbeam
=
0
;
LeftturnSignal
=
0
;
LeftturnSignal
=
0
;
highbeam
=
0
;
highbeam
=
0
;
RightturnSignal
=
0
;
RightturnSignal
=
0
;
Bluetoothlight
=
1
;
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
)
{
LINE_OUT_NEG_01
=
1
;
LINE_OUT_NEG_04
=
1
;
}
LINE_OUT_NEG_02
=
1
;
LINE_OUT_NEG_03
=
1
;
RightturnSignal
=
1
;
LeftturnSignal
=
1
;
Bluetoothlight
=
1
;
Positionlight
=
1
;
highbeam
=
1
;
Lowbeam
=
1
;
break
;
break
;
}
}
// case 14:
// {
// Lowbeam = 0;
// LeftturnSignal = 0;
// highbeam = 0;
// RightturnSignal = 0;
// Bluetoothlight = 1;
// break;
// }
// case 15: //全上电连蓝牙
// case 15: //全上电连蓝牙
// {
// {
// LINE_OUT_NEG_05 = 0;
// LINE_OUT_NEG_05 = 0;
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
0b0df01e
...
@@ -34,6 +34,7 @@ const unsigned char gImage_icon_01X0_Y01[]={/*Byte Size130*/
...
@@ -34,6 +34,7 @@ const unsigned char gImage_icon_01X0_Y01[]={/*Byte Size130*/
0X1fU
,
0X3fU
,
0X3fU
,
0X3fU
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X1fU
,
0X3fU
,
0X3fU
,
0X3fU
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
};
};
//T动力指示灯
const
unsigned
char
gImage_icon_01X0_Y02
[]
=
{
/*Byte Size130*/
const
unsigned
char
gImage_icon_01X0_Y02
[]
=
{
/*Byte Size130*/
32U
,
32U
,
32U
,
32U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0Xe0U
,
0Xf0U
,
0Xf8U
,
0XfcU
,
0XfeU
,
0X7fU
,
0X3fU
,
0X1fU
,
0X0fU
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0Xe0U
,
0Xf0U
,
0Xf8U
,
0XfcU
,
0XfeU
,
0X7fU
,
0X3fU
,
0X1fU
,
0X0fU
,
...
@@ -210,6 +211,7 @@ const unsigned char gImage_icon_01X0_Y14[]={/*Byte Size130*/
...
@@ -210,6 +211,7 @@ const unsigned char gImage_icon_01X0_Y14[]={/*Byte Size130*/
0X3fU
,
0X3bU
,
0X38U
,
0X3cU
,
0X1eU
,
0X0eU
,
0X0fU
,
0X07U
,
0X07U
,
0X03U
,
0X01U
,
0X01U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X3fU
,
0X3bU
,
0X38U
,
0X3cU
,
0X1eU
,
0X0eU
,
0X0fU
,
0X07U
,
0X07U
,
0X03U
,
0X01U
,
0X01U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
};
};
//位置灯
const
unsigned
char
gImage_icon_01X0_Y15
[]
=
{
/*Byte Size226*/
const
unsigned
char
gImage_icon_01X0_Y15
[]
=
{
/*Byte Size226*/
56U
,
32U
,
56U
,
32U
,
0X00U
,
0X00U
,
0X00U
,
0X7eU
,
0X7eU
,
0X7eU
,
0XfeU
,
0XfeU
,
0XfeU
,
0Xf8U
,
0Xf8U
,
0Xf8U
,
0X80U
,
0Xe0U
,
0Xf0U
,
0Xf8U
,
0X00U
,
0X00U
,
0X00U
,
0X7eU
,
0X7eU
,
0X7eU
,
0XfeU
,
0XfeU
,
0XfeU
,
0Xf8U
,
0Xf8U
,
0Xf8U
,
0X80U
,
0Xe0U
,
0Xf0U
,
0Xf8U
,
...
@@ -1702,6 +1704,7 @@ const unsigned char gImage_gImage_turnRight1X6_Y16[]={/*Byte Size114*/
...
@@ -1702,6 +1704,7 @@ const unsigned char gImage_gImage_turnRight1X6_Y16[]={/*Byte Size114*/
0X03U
,
0X03U
,
0X01U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X03U
,
0X03U
,
0X01U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
0X00U
,
};
};
//龟速行驶修复模式
const
unsigned
char
gImage_gImage_xiangonglv1X6_Y16
[]
=
{
/*Byte Size114*/
const
unsigned
char
gImage_gImage_xiangonglv1X6_Y16
[]
=
{
/*Byte Size114*/
28U
,
32U
,
28U
,
32U
,
0X00U
,
0X00U
,
0Xc0U
,
0Xe0U
,
0X70U
,
0X38U
,
0X1cU
,
0X0cU
,
0X06U
,
0X06U
,
0X07U
,
0X03U
,
0X03U
,
0X03U
,
0X03U
,
0X03U
,
0X00U
,
0X00U
,
0Xc0U
,
0Xe0U
,
0X70U
,
0X38U
,
0X1cU
,
0X0cU
,
0X06U
,
0X06U
,
0X07U
,
0X03U
,
0X03U
,
0X03U
,
0X03U
,
0X03U
,
...
@@ -4532,6 +4535,10 @@ void Display_Send_Vspead(uint8_t menu)
...
@@ -4532,6 +4535,10 @@ void Display_Send_Vspead(uint8_t menu)
uint8_t
Battery_evel
=
0
;
//电量
uint8_t
Battery_evel
=
0
;
//电量
uint8_t
VSpeed_val
=
0
;
//车速
uint8_t
VSpeed_val
=
0
;
//车速
static
uint8_t
Type_Clear
=
0
;
static
uint8_t
Type_Clear
=
0
;
uint8_t
GPSPattern
[
4
]
=
{
0x47
,
0x50
,
0x53
,
0xFF
};
uint8_t
FourGPattern
[
3
]
=
{
0x04
,
0x47
,
0xFF
};
// static uint8_t Type_Clear_FLAG = 0;
// static uint8_t Type_Clear_FLAG = 0;
if
(
(
Type_Clear
!=
menu
))
if
(
(
Type_Clear
!=
menu
))
{
{
...
@@ -4556,52 +4563,12 @@ void Display_Send_Vspead(uint8_t menu)
...
@@ -4556,52 +4563,12 @@ void Display_Send_Vspead(uint8_t menu)
switch
(
menu
)
switch
(
menu
)
{
{
case
1
:
case
1
:
// Battery_evel = 1;
HW_Static_Current_Check
(
1
);
//静态电流
// VSpeed_val = 0;
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_Powerlow1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_READY1X6_Y16);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_LowBean1X6_Y16);
// TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
// 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(160, 40+25+25, "FREE", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "0", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "1", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", 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(0, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5); //功率值
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "10kW", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// 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);
HW_Static_Current_Check
(
1
);
break
;
break
;
case
2
:
case
2
:
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_greenX6_Y165
);
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_greenX6_Y165
);
Battery_evel
=
1
;
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnLeft1X6_Y16);
VSpeed_val
=
0
;
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_highBeanX6_Y165);
// GUI_Display_Version_Code_Service(160, 40, "11", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "15", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
10
;
VSpeed_val
=
10
;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
// 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
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_T
);
...
@@ -4609,240 +4576,139 @@ void Display_Send_Vspead(uint8_t menu)
...
@@ -4609,240 +4576,139 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_F
);
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
,
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
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
// GUI_Display_Version_Code_Service(160, 40+25+25, "SPORT", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "50kW", Letter_Num_11, PCodeText_Space_size);
// 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_K);
TFT_LCD_Draw_Bmp
(
180
+
18
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
TFT_LCD_Draw_Bmp
(
180
+
18
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
GUI_General_Digit_Display
(
10
,
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(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, "11-11", 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_1);
// 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_1);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
GUI_Display_Version_Code_Service
(
3
,
40
+
25
+
25
+
25
+
25
,
"Color"
,
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_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
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y04
);
TFT_LCD_Draw_Bmp
(
3
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y10
);
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
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y18
);
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+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_Y0
6
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
55
,
(
uint8_t
*
)
gImage_gImage_READY1X6_Y1
6
);
TFT_LCD_Draw_Bmp
(
3
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y03
);
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
+
6
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y11
);
TFT_LCD_Draw_Bmp
(
3
+
60
+
7
0
,
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
+
60
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y14
);
uint8_t
GPSPattern
[
4
]
=
{
0x47
,
0x50
,
0x53
,
0xFF
};
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y13
);
uint8_t
FourGPattern
[
3
]
=
{
0x04
,
0x47
,
0xFF
};
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
(
GPSPattern
,
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
);
General_Number_Disp
(
FourGPattern
,
3
+
10
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
);
General_Number_Disp
(
FourGPattern
,
3
+
6
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
);
if
(
youzhuanget
==
1
)
if
(
youzhuanget
==
1
)
{
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
30
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
}
}
else
else
{
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
30
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
}
}
break
;
break
;
case
3
:
case
3
:
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_orange1X6_Y16
);
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_orange1X6_Y16
);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnRight1X6_Y16);
Battery_evel
=
100
;
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
VSpeed_val
=
99
;
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_position1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40, "22", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "22", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
50
;
VSpeed_val
=
50
;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
// 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
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_S
);
TFT_LCD_Draw_Bmp
(
140
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_P
);
TFT_LCD_Draw_Bmp
(
140
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_P
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_O
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_O
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_T
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_T
);
// GUI_Display_Version_Code_Service(160, 40+25+25, "TTFAR", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "100kW", 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
);
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_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
// 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, "22-22", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// 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_2);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
GUI_Display_Version_Code_Service
(
3
,
40
+
25
+
25
+
25
+
25
,
"Color"
,
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_Y01
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y01
);
TFT_LCD_Draw_Bmp
(
3
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y05
);
TFT_LCD_Draw_Bmp
(
3
+
50
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y06
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
4
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y08
);
TFT_LCD_Draw_Bmp
(
3
+
50
+
5
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y08
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
40
+
4
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_TCS1X6_Y16
);
TFT_LCD_Draw_Bmp
(
3
+
50
+
50
+
5
0
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_TCS1X6_Y16
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y12
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y13
);
TFT_LCD_Draw_Bmp
(
3
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y13
);
TFT_LCD_Draw_Bmp
(
3
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y11
);
// TFT_LCD_Draw_Bmp(3+40+40+40, 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
+
40
,
(
uint8_t
*
)
gImage_icon_01X0_Y14
);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
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
);
// uint8_t TCSPattern[4] = {0x54,0x43,0x53,0xFF};
// General_Number_Disp(TCSPattern, 3, 40+25+25+25+25+25+25+40);
if
(
zuozhuanget
==
1
)
if
(
zuozhuanget
==
1
)
{
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
}
}
else
else
{
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
}
}
break
;
break
;
case
4
:
case
4
:
TFT_LCD_Draw_Bmp
(
100
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_red1X6_Y16
);
//
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
);
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_blueX6_Y165
);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_BianchengX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_Alarm_12_xhX6_Y165);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_superT1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40, "33", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "33", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
60
;
VSpeed_val
=
99
;
TFT_LCD_Draw_Bmp
(
140
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_F
);
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
,
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
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_E
);
TFT_LCD_Draw_Bmp
(
140
+
18
+
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+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "13-33", 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_3);
// 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_3);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
GUI_Display_Version_Code_Service
(
3
,
40
+
25
+
25
+
25
+
25
,
"Color"
,
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(180, 40+25+25+25, ( uint8_t * )NO_K);
// 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
);
TFT_LCD_Draw_Bmp
(
180
+
18
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
GUI_General_Digit_Display
(
10
0
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
GUI_General_Digit_Display
(
5
0
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y16
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y16
);
break
;
break
;
case
5
:
case
5
:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_red1X6_Y16
);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seattong1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40+25, "44", Letter_Num_11, PCodeText_Space_size);
GUI_Display_Version_Code_Service
(
3
,
40
+
25
+
25
+
25
+
25
,
"Color"
,
Letter_Num_11
,
PCodeText_Space_size
);
// GUI_Display_Version_Code_Service(160, 40, "44", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
VSpeed_val
=
60
;
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, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "1", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_G);
// 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
);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
// GUI_Display_Version_Code_Service(155, 40+25+25+25, "-1", Letter_Num_11, PCodeText_Space_size);
// 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, "14-44", 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_4);
GUI_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
// 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_4);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y01
);
TFT_LCD_Draw_Bmp
(
3
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y03
);
break
;
case
6
:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seat1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_doupoX6_Y165);
// GUI_Display_Version_Code_Service(160, 40+25, "55", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "55", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
80
;
VSpeed_val
=
99
;
TFT_LCD_Draw_Bmp
(
140
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_T
);
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
,
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
,
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
,
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
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
//
GUI_Display_Version_Code_Service(160, 40+25+25+25, "5", Letter_Num_11, PCodeText_Space_size
);
//
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
);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_icon_020X0_Y0);
GUI_Display_Version_Code_Service
(
155
,
40
+
25
+
25
+
25
,
"-10"
,
Letter_Num_11
,
PCodeText_Space_size
);
// GUI_General_Digit_Display(lightnumber, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+25+25+25+25+25+25);
GUI_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
// if(Light_Out == 0) //低电平
// {
// // TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_dui11 );
// if(guangganflag == 2 || guangganflag == 3)
// {
// guangganflag = 3;
// }
// else
// {
// guangganflag = 1;
// }
// }
// else
// {
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_cuo11 );
// if(guangganflag == 1)
// {
// guangganflag = 2;
// }
// }
// 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, "15-55", 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_5);
// 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_5);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y02
);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y02
);
uint8_t
AUTO
[
5
]
=
{
0x41
,
0x55
,
0x54
,
0x4F
,
0xFF
};
TFT_LCD_Draw_Bmp
(
3
+
50
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y16
);
General_Number_Disp
(
AUTO
,
3
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
);
TFT_LCD_Draw_Bmp
(
3
+
50
+
50
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y15
);
break
;
case
7
:
// else
// {
// Display_TFT_Clear();
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_ABSX6_Y165);
TFT_LCD_Draw_Bmp
(
70
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_xiangonglv1X6_Y16
);
// GUI_Display_Version_Code_Service(160, 40+25, "66", Letter_Num_11, PCodeText_Space_size);
if
(
Light_Out
==
1
)
// GUI_Display_Version_Code_Service(160, 40, "66", Letter_Num_11, PCodeText_Space_size);
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
}
else
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
+
40
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
}
break
;
case
6
:
if
(
KeyStep
!=
3
)
{
GUI_Display_Version_Code_Service
(
25
,
20
,
"Please enter password "
,
Letter_Num_11
,
PCodeText_Space_size
);
}
else
{
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
99
;
VSpeed_val
=
99
;
...
@@ -4852,56 +4718,20 @@ void Display_Send_Vspead(uint8_t menu)
...
@@ -4852,56 +4718,20 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_A
);
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
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "
10
", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "
5
", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_
gImage_ABSX6_Y165
);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_
icon_020X0_Y0
);
GUI_Display_Version_Code_Service
(
1
4
5
,
40
+
25
+
25
+
25
,
"-50"
,
Letter_Num_11
,
PCodeText_Space_size
);
GUI_Display_Version_Code_Service
(
1
5
5
,
40
+
25
+
25
+
25
,
"-50"
,
Letter_Num_11
,
PCodeText_Space_size
);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// uint8_t AUTO[5] = {0x41,0x55,0x54,0x4F,0xFF};
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "16-06", Letter_Num_11, PCodeText_Space_size);
// General_Number_Disp(AUTO, 3+40, 40+25+25+25+25+25+25);
// 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_6);
// 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_6);
// }
break
;
break
;
// case 8:
case
7
:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
TFT_LCD_Draw_Bmp
(
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_icon_01X0_Y14
);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_zcguzhang1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40+25, "77", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "77", Letter_Num_11, PCodeText_Space_size);
// 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);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
// GUI_Display_Version_Code_Service(145, 40+25+25+25, "-100", 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(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
// 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, "17-07", 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_7);
// 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_7);
// GUI_Display_Version_Code_Service(160, 40+25, "66", Letter_Num_11, PCodeText_Space_size);
// break;
// GUI_Display_Version_Code_Service(160, 40, "66", Letter_Num_11, PCodeText_Space_size);
case
8
:
// GUI_Display_Version_Code_Service(160, 40+25, "88", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "88", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
99
;
VSpeed_val
=
99
;
...
@@ -4910,113 +4740,115 @@ void Display_Send_Vspead(uint8_t menu)
...
@@ -4910,113 +4740,115 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Bmp
(
140
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_F
);
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
,
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
(
140
+
18
+
18
+
18
+
18
,
40
+
25
+
25
,
(
uint8_t
*
)
NO_R
);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
GUI_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "10", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_gImage_ABSX6_Y165);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "18-08", Letter_Num_11, PCodeText_Space_size);
GUI_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
// 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_8);
// 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_8);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_lowPower1X6_Y16);
break
;
break
;
case
9
:
// GUI_Display_Version_Code_Service(160, 40+25, "99", Letter_Num_11, PCodeText_Space_size);
case
8
:
// GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
99
;
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, 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, 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, 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, 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(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);
GUI_General_Digit_Display
(
100
,
Num_15
,
6
,
5
,
ODODigitNum09PosX
,
40
+
25
+
25
+
25
+
5
);
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
);
TFT_LCD_Draw_Bmp
(
180
,
40
+
25
+
25
+
25
,
(
uint8_t
*
)
NO_W
);
// 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
;
break
;
case
13
:
// 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);
// GUI_Display_Version_Code_Service(25, 20, "Please enter password ", Letter_Num_11, PCodeText_Space_size);
Battery_evel
=
0
;
Battery_evel
=
0
;
VSpeed_val
=
99
;
VSpeed_val
=
99
;
GUI_Display_Version_Code_Service
(
70
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
25
,
"ALL"
,
Letter_Num_11
,
PCodeText_Space_size
);
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
;
if
(
KeyStep
!=
3
)
{
GUI_Display_Version_Code_Service
(
25
,
20
,
"Please enter password "
,
Letter_Num_11
,
PCodeText_Space_size
);
}
// 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
;
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;
default:
default:
MENU_CHECK_STEP
=
0
;
MENU_CHECK_STEP
=
0
;
break
;
break
;
}
}
if
((
(
menu
>
1
)
&&
(
menu
<
9
))
||
(
menu
==
13
))
if
((
menu
>
1
)
&&
(
menu
<
10
))
{
{
if
((
KeyStep
!=
3
)
&&
(
menu
==
14
))
if
((
KeyStep
!=
3
)
&&
(
menu
==
6
))
{
{
;
;
}
}
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
0b0df01e
...
@@ -298,7 +298,7 @@ void confirmkeyserve(void)
...
@@ -298,7 +298,7 @@ void confirmkeyserve(void)
uint8_t
KeyStep
=
0
;
uint8_t
KeyStep
=
0
;
void
PasswordUnlock
(
void
)
void
PasswordUnlock
(
void
)
{
{
if
(
MENU_CHECK_STEP
==
14
)
if
(
MENU_CHECK_STEP
==
6
)
{
{
if
(
KeyStep
==
0
)
if
(
KeyStep
==
0
)
{
{
...
@@ -319,8 +319,13 @@ void PasswordUnlock(void)
...
@@ -319,8 +319,13 @@ void PasswordUnlock(void)
if
(
Confirmkeyflag
)
if
(
Confirmkeyflag
)
{
{
KeyStep
=
3
;
KeyStep
=
3
;
Display_TFT_Clear
();
}
}
}
}
else
{
;
}
}
}
else
else
{
{
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
0b0df01e
...
@@ -42,8 +42,6 @@ uint32_t R485_Send_0xD0(void)
...
@@ -42,8 +42,6 @@ uint32_t R485_Send_0xD0(void)
R485_IDD0h
.
Sig
.
IOT_RealTime_Hour
=
0x16
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Hour
=
0x16
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Minute
=
0x16
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Minute
=
0x16
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Second
=
0x00
;
//时分秒
R485_IDD0h
.
Sig
.
IOT_RealTime_Second
=
0x00
;
//时分秒
R485_IDD0h
.
Sig
.
GPS_State
=
0
;
//GPS
R485_IDD0h
.
Sig
.
GSM_State
=
0
;
//GSM
break
;
break
;
case
4
:
case
4
:
...
@@ -53,8 +51,6 @@ uint32_t R485_Send_0xD0(void)
...
@@ -53,8 +51,6 @@ uint32_t R485_Send_0xD0(void)
R485_IDD0h
.
Sig
.
EstimateRemainingMileage_L
=
0x10
;
R485_IDD0h
.
Sig
.
EstimateRemainingMileage_L
=
0x10
;
R485_IDD0h
.
Sig
.
EstimateRemainingMileage_H
=
0x27
;
//续航里程
R485_IDD0h
.
Sig
.
EstimateRemainingMileage_H
=
0x27
;
//续航里程
R485_IDD0h
.
Sig
.
GPS_State
=
0
;
R485_IDD0h
.
Sig
.
GSM_State
=
0
;
break
;
break
;
case
5
:
case
5
:
...
@@ -81,14 +77,6 @@ uint32_t R485_Send_0xD0(void)
...
@@ -81,14 +77,6 @@ uint32_t R485_Send_0xD0(void)
R485_IDD0h
.
Sig
.
GSM_State
=
0
;
R485_IDD0h
.
Sig
.
GSM_State
=
0
;
break
;
break
;
// case 8:
// R485_IDD0h.Sig.IOT_RealTime_Hour = 0x11;
// R485_IDD0h.Sig.IOT_RealTime_Minute = 0x07;
// R485_IDD0h.Sig.IOT_RealTime_Second = 0x00; //时分秒
// R485_IDD0h.Sig.GPS_State = 0;
// R485_IDD0h.Sig.GSM_State = 0;
// break;
case
8
:
case
8
:
R485_IDD0h
.
Sig
.
IOT_RealTime_Hour
=
0x12
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Hour
=
0x12
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Minute
=
0x08
;
R485_IDD0h
.
Sig
.
IOT_RealTime_Minute
=
0x08
;
...
@@ -131,6 +119,7 @@ uint32_t R485_Send_0xD1(void)
...
@@ -131,6 +119,7 @@ uint32_t R485_Send_0xD1(void)
{
{
case
0
:
case
0
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
break
;
break
;
case
1
:
case
1
:
...
@@ -138,12 +127,12 @@ uint32_t R485_Send_0xD1(void)
...
@@ -138,12 +127,12 @@ uint32_t R485_Send_0xD1(void)
break
;
break
;
case
2
:
case
2
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
14
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
02
;
//电量
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
break
;
break
;
case
3
:
case
3
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
64
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x
C8
;
//电量
break
;
break
;
case
4
:
case
4
:
...
@@ -173,11 +162,8 @@ uint32_t R485_Send_0xD1(void)
...
@@ -173,11 +162,8 @@ uint32_t R485_Send_0xD1(void)
case
9
:
case
9
:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
// R485_IDD1h.Sig.BatteryChargingStatus = 0x01; //充电枪
break
;
case
13
:
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
R485_IDD1h
.
Sig
.
BatteryChargingStatus
=
0x01
;
//充电枪
break
;
default:
default:
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
R485_IDD1h
.
Sig
.
MainBatteryQuantity
=
0x00
;
//电量
...
@@ -231,51 +217,85 @@ uint32_t R485_Send_0xD2(void)
...
@@ -231,51 +217,85 @@ uint32_t R485_Send_0xD2(void)
break
;
break
;
case
2
:
case
2
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
47
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速
1
0
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速
0
0
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
5
;
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x0
0
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
3A
;
//功率1
0%
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
00
;
//功率0
0%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//档位TTFAR
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//档位TTFAR
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
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
;
break
;
case
3
:
case
3
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
6F
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
DE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
1
;
//车速50
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
5A
;
//功率5
0%
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
82
;
//功率10
0%
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x03
;
//档位SPORT
R485_IDD2h
.
Sig
.
SpeedGear
=
0x03
;
//档位SPORT
RampParkedStatecounter
=
0
;
//
RampParkedStatecounter = 0;
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
FaultCorrecting
=
0x00
;
//修复模式
//
R485_IDD2h.Sig.FaultCorrecting = 0x00; //修复模式
R485_IDD2h
.
Sig
.
CruiseModeFeedback
=
0x01
;
//巡航灯
R485_IDD2h
.
Sig
.
SteepHillDescentEnable
=
0x00
;
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
R485_IDD2h
.
Sig
.
SteepHillDescentEnable
=
0x00
;
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
break
;
break
;
case
4
:
case
4
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
b8
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
DE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
1
;
//车速60
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速60
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
82
;
//功率100%
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
5A
;
//功率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//不为free模式
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
RampParkedStatecounter
=
0
;
break
;
case
5
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速60
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x82
;
//功率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
TPowerFeedback
=
0x01
;
//T动力
if
(
RampParkedStatecounter
<
10
)
if
(
RampParkedStatecounter
<
10
)
{
{
RampParkedStatecounter
++
;
RampParkedStatecounter
++
;
...
@@ -287,62 +307,34 @@ uint32_t R485_Send_0xD2(void)
...
@@ -287,62 +307,34 @@ uint32_t R485_Send_0xD2(void)
}
}
break
;
break
;
case
5
:
RampParkedStatecounter
=
0
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xb8
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x01
;
//车速60
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x82
;
//功率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
break
;
case
6
:
case
6
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x4B
;
RampParkedStatecounter
=
0
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速80
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速80
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
2
8
;
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
C
8
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x31
;
//电流为负
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x31
;
//电流为负
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收10格
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收10格
R485_IDD2h
.
Sig
.
TPowerFeedback
=
0x01
;
//T动力
break
;
break
;
case
7
:
case
7
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
C8
;
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0x
05
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
31
;
//电流为负
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x
82
;
//功率100%
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收50格
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收50格
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
//
R485_IDD2h.Sig.ClaudicationPatternFeedback = 0x01; //龟速行驶
break
;
break
;
// case 8:
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0xDE;
// R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x02; //车速99
// R485_IDD2h.Sig.BusbarVoltage = 0xC8;
// R485_IDD2h.Sig.BusbarCurrent = 0x30; //电流为负
// R485_IDD2h.Sig.SpeedGear = 0x01; //不为free模式
// R485_IDD2h.Sig.RecuperationStatusFeedback = 0x01; //能量回收功能设置反馈为1 //能量回收100格
// // R485_IDD2h.Sig.MCUFaultStatus_HandlebarFault = 0x01; //整车故障等
// // R485_IDD2h.Sig.RampParkedState = 0x01; //坡道驻停状态(氛围灯红色闪烁两次)
// break;
case
8
:
case
8
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0xDE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x02
;
//车速99
...
@@ -355,39 +347,42 @@ uint32_t R485_Send_0xD2(void)
...
@@ -355,39 +347,42 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收100格
R485_IDD2h
.
Sig
.
RecuperationStatusFeedback
=
0x01
;
//能量回收功能设置反馈为1 //能量回收100格
break
;
break
;
case
9
:
//
case 9:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
//
R485_IDD2h.Sig.ParkinFeedback = 0x00;
R485_IDD2h
.
Sig
.
SpeedGear
=
0x00
;
//档位-助力推行
//
R485_IDD2h.Sig.SpeedGear = 0x00; //档位-助力推行
break
;
//
break;
case
10
:
//
case 10:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//
R485_IDD2h.Sig.SpeedGear = 0x04;
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x01
;
//驻车挡位P档
//
R485_IDD2h.Sig.ParkinFeedback = 0x01; //驻车挡位P档
break
;
//
break;
case
11
:
//
case 11:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x00
;
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_L = 0x00;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x00
;
//车速00
//
R485_IDD2h.Sig.ICMCalculatesVehicleSpeed_H = 0x00; //车速00
R485_IDD2h
.
Sig
.
SpeedGear
=
0x04
;
//
R485_IDD2h.Sig.SpeedGear = 0x04;
R485_IDD2h
.
Sig
.
ParkinFeedback
=
0x00
;
//
R485_IDD2h.Sig.ParkinFeedback = 0x00;
R485_IDD2h
.
Sig
.
ReverseModeFeedback
=
0x01
;
//倒挡模式
//
R485_IDD2h.Sig.ReverseModeFeedback = 0x01; //倒挡模式
break
;
//
break;
case
12
:
//
case 12:
R485_IDD2h
.
Sig
.
RampParkedState
=
0x01
;
//坡道驻停
//
R485_IDD2h.Sig.RampParkedState = 0x01; //坡道驻停
break
;
//
break;
case
13
:
case
9
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
DE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速99
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
0
;
//车速99
R485_IDD2h
.
Sig
.
BusbarVoltage
=
0xC8
;
R485_IDD2h
.
Sig
.
BusbarCurrent
=
0x31
;
//电流为负
R485_IDD2h
.
Sig
.
CruiseModeFeedback
=
0x01
;
//巡航灯
R485_IDD2h
.
Sig
.
CruiseModeFeedback
=
0x01
;
//巡航灯
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
R485_IDD2h
.
Sig
.
SpeedGear
=
0x01
;
//不为free模式
...
@@ -396,7 +391,7 @@ uint32_t R485_Send_0xD2(void)
...
@@ -396,7 +391,7 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//整车故障等
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//整车故障等
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
//
R485_IDD2h.Sig.ClaudicationPatternFeedback = 0x01; //龟速行驶
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
...
@@ -404,7 +399,7 @@ uint32_t R485_Send_0xD2(void)
...
@@ -404,7 +399,7 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
R485_IDD2h
.
Sig
.
SteepHillDescentEnable
=
0x00
;
//陡坡缓降
R485_IDD2h
.
Sig
.
SteepHillDescentEnable
=
0x00
;
//陡坡缓降
// R485_IDD2h.Sig.FaultCorrecting = 0x00; //修复模式
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
break
;
break
;
default:
default:
...
@@ -469,12 +464,16 @@ uint32_t R485_Send_0xD3(void)
...
@@ -469,12 +464,16 @@ uint32_t R485_Send_0xD3(void)
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
0
;
//续航里程
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
0
;
//续航里程
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
break
;
break
;
case
4
:
case
4
:
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
1
;
//续航里程
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
1
;
//续航里程
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
// R485_IDD3h.Sig.VehicleStatus = 0x00;
// R485_IDD3h.Sig.VehicleStatus = 0x00;
// R485_IDD3h.Sig.AlarmStatus = 0x01; //氛围灯红色(会线束故障挡住显示)
// R485_IDD3h.Sig.AlarmStatus = 0x01; //氛围灯红色(会线束故障挡住显示)
break
;
break
;
...
@@ -485,52 +484,38 @@ uint32_t R485_Send_0xD3(void)
...
@@ -485,52 +484,38 @@ uint32_t R485_Send_0xD3(void)
case
6
:
case
6
:
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x01
;
//自动大灯
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x01
;
//自动大灯
break
;
// case 7:
if
(
KeyStep
==
3
)
// break;
case
9
:
break
;
if
(
mimayanzhengjieguo
==
1
)
{
{
R485_IDD3h
.
Sig
.
Password
AuthResult
=
0x00
;
//密码认证结果
R485_IDD3h
.
Sig
.
Password
UnlockCommand
=
0x00
;
//密码解锁
}
}
else
else
{
{
R485_IDD3h
.
Sig
.
Password
AuthResult
=
0x03
;
//密码认证结果
R485_IDD3h
.
Sig
.
Password
UnlockCommand
=
0x01
;
//密码解锁
}
}
break
;
break
;
case
10
:
// case 9:
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
// break;
default:
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x00
;
//边撑状态
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x00
;
//座桶开启灯
// R485_IDD3h.Sig.VehicleStatus = 0xFF;
// R485_IDD3h.Sig.AlarmStatus = 0xFF; //氛围灯颜色
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
// case 10:
break
;
// R485_IDD3h.Sig.ElectronicCushionStatus = 0x01; //座桶开启灯
// break;
case
13
:
case
9
:
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x01
;
//自动大灯
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x01
;
//自动大灯
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
break
;
break
;
case
14
:
case
14
:
if
(
KeyStep
==
3
)
break
;
{
R485_IDD3h
.
Sig
.
PasswordUnlockCommand
=
0x00
;
//密码解锁
default:
}
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x00
;
//边撑状态
else
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x00
;
//座桶开启灯
{
R485_IDD3h
.
Sig
.
PasswordUnlockCommand
=
0x01
;
//密码解锁
R485_IDD3h
.
Sig
.
AutoheadLightSetting
=
0x00
;
//自动大灯
}
break
;
break
;
}
}
}
}
...
@@ -539,6 +524,10 @@ uint32_t R485_Send_0xD3(void)
...
@@ -539,6 +524,10 @@ uint32_t R485_Send_0xD3(void)
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
1
;
//续航里程
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
1
;
//续航里程
}
}
if
(
clearOdoFlag
==
0
)
{
}
u32sendendflag
=
R485_Send
(
0xD3
,
R485_IDD3h
.
Msg
,
sizeof
(
R485_IDD3h
.
Msg
));
u32sendendflag
=
R485_Send
(
0xD3
,
R485_IDD3h
.
Msg
,
sizeof
(
R485_IDD3h
.
Msg
));
return
u32sendendflag
;
return
u32sendendflag
;
}
}
...
@@ -583,6 +572,7 @@ uint32_t R485_Send_0x04(void)
...
@@ -583,6 +572,7 @@ uint32_t R485_Send_0x04(void)
case
0
:
case
0
:
R485_zhenduan_Msg
[
0
]
=
0x10
;
R485_zhenduan_Msg
[
0
]
=
0x10
;
R485_zhenduan_Msg
[
1
]
=
0x03
;
R485_zhenduan_Msg
[
1
]
=
0x03
;
zhenduansendStep
=
3
;
break
;
break
;
case
1
:
case
1
:
R485_zhenduan_Msg
[
0
]
=
0x27
;
R485_zhenduan_Msg
[
0
]
=
0x27
;
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.h
View file @
0b0df01e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#define RS485_RX_ID0XB2_DATA_LEN 76
#define RS485_RX_ID0XB2_DATA_LEN 76
#define RS485_RX_ID0XD2_DATA_LEN 36
#define RS485_RX_ID0XD2_DATA_LEN 36
#define RS485_RX_ID0XB3_DATA_LEN 89
#define RS485_RX_ID0XB3_DATA_LEN 89
#define RS485_RX_ID0XD3_DATA_LEN
26
#define RS485_RX_ID0XD3_DATA_LEN
59
#define RS485_RX_ID0XB6_DATA_LEN 86
#define RS485_RX_ID0XB6_DATA_LEN 86
#define RS485_RX_ID0XD6_DATA_LEN 111
#define RS485_RX_ID0XD6_DATA_LEN 111
#define RS485_RX_ID0XA4_DATA_LEN 1
#define RS485_RX_ID0XA4_DATA_LEN 1
...
@@ -1553,7 +1553,7 @@ typedef union __attribute__((packed))
...
@@ -1553,7 +1553,7 @@ typedef union __attribute__((packed))
uint8_t
:
4
;
uint8_t
:
4
;
uint8_t
:
2
;
// 推行模式反馈
uint8_t
:
2
;
// 推行模式反馈
uint8_t
:
2
;
uint8_t
SideStaySenseSetFeedback
:
2
;
/*边撑感应功能设置反馈*/
uint8_t
:
2
;
/*30*/
uint8_t
:
2
;
/*30*/
uint8_t
ReverseModeFeedback
:
2
;
// 倒车模式反馈
uint8_t
ReverseModeFeedback
:
2
;
// 倒车模式反馈
...
@@ -1575,7 +1575,7 @@ typedef union __attribute__((packed))
...
@@ -1575,7 +1575,7 @@ typedef union __attribute__((packed))
uint8_t
SuperTPower
:
2
;
// 超级T动力状态
uint8_t
SuperTPower
:
2
;
// 超级T动力状态
uint8_t
:
2
;
uint8_t
:
2
;
uint8_t
:
2
;
uint8_t
RampParkedSetFeedback
:
2
;
/*坡道驻停功能设置反馈*/
uint8_t
RampParkedState
:
2
;
// 坡道驻停状态
uint8_t
RampParkedState
:
2
;
// 坡道驻停状态
uint8_t
SlopeDescentFunctionStatus
:
2
;
//陡坡缓降功能设置反馈
uint8_t
SlopeDescentFunctionStatus
:
2
;
//陡坡缓降功能设置反馈
uint8_t
SteepHillDescentEnable
:
2
;
// 陡坡缓降激活
uint8_t
SteepHillDescentEnable
:
2
;
// 陡坡缓降激活
...
@@ -1686,7 +1686,7 @@ typedef union __attribute__((packed))
...
@@ -1686,7 +1686,7 @@ typedef union __attribute__((packed))
uint8_t
:
2
;
// 座垫加热等级设置反馈
uint8_t
:
2
;
// 座垫加热等级设置反馈
uint8_t
:
2
;
// 座垫感应开关状态反馈
uint8_t
:
2
;
// 座垫感应开关状态反馈
uint8_t
:
2
;
uint8_t
CushionSenseSetFeedback
:
2
;
// 座垫感应功能设置反馈
uint8_t
DumpCategory
:
2
;
// 倾倒类别
uint8_t
DumpCategory
:
2
;
// 倾倒类别
uint8_t
SupportSwitchState
:
2
;
// 边撑开关状态
uint8_t
SupportSwitchState
:
2
;
// 边撑开关状态
...
@@ -1720,6 +1720,74 @@ typedef union __attribute__((packed))
...
@@ -1720,6 +1720,74 @@ typedef union __attribute__((packed))
uint8_t
PasswordCanbeEnter
:
3
;
// 密码可输入剩余次数
uint8_t
PasswordCanbeEnter
:
3
;
// 密码可输入剩余次数
uint8_t
BlueToothPair
:
1
;
// 经典蓝牙配对指令
uint8_t
BlueToothPair
:
1
;
// 经典蓝牙配对指令
/*-----B26------*/
uint8_t
MusicPlayModeCommand
:
3
;
/*音乐播放模式设置指令*/
uint8_t
:
2
;
uint8_t
:
3
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
MacAddr1
:
8
;
uint8_t
MacAddr2
:
8
;
uint8_t
MacAddr3
:
8
;
uint8_t
MacAddr4
:
8
;
uint8_t
MacAddr5
:
8
;
uint8_t
MacAddr6
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
3
;
uint8_t
CurrentAccountID
:
3
;
/*当前账户ID*/
uint8_t
AccompanyMeHome
:
2
;
/*伴我回家功能激活状态*/
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
SuddenBrakeFlash
:
2
;
/*急刹爆闪*/
uint8_t
:
6
;
uint8_t
:
2
;
uint8_t
WifiStartUpCommand
:
3
;
/*wifi开启设置指令B47*/
uint8_t
:
3
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
8
;
uint8_t
:
2
;
uint8_t
ManualAdjBacklightSet
:
2
;
/*手动调节背光功能设置指令*/
uint8_t
:
4
;
uint8_t
BackLightValueSet
:
8
;
/*背光亮度值设置*/
}
Sig
;
}
Sig
;
}
_ID0XD3h_Data
;
}
_ID0XD3h_Data
;
...
...
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