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
27406b02
Commit
27406b02
authored
Oct 14, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加左右转向检测
parent
442385e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
19 deletions
+21
-19
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+19
-1
RTE_GPIO.h
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
+2
-2
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+0
-16
No files found.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
27406b02
...
...
@@ -4094,7 +4094,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
,
5
,
0
,
9
,
2
,
3
,
0xff
};
uint8_t
mbuff
[
7
]
=
{
2
,
5
,
1
,
0
,
1
,
4
,
0xff
};
General_Number_Disp
(
mbuff
,
160
,
290
);
}
...
...
@@ -4643,6 +4643,16 @@ void Display_Send_Vspead(uint8_t menu)
uint8_t
FourGPattern
[
3
]
=
{
0x04
,
0x47
,
0xFF
};
General_Number_Disp
(
GPSPattern
,
3
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
);
General_Number_Disp
(
FourGPattern
,
3
+
100
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
40
+
40
);
if
(
youzhuanget
==
1
)
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
}
else
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
}
break
;
case
3
:
TFT_LCD_Draw_Bmp
(
160
,
40
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_gImage_orange1X6_Y16
);
...
...
@@ -4692,6 +4702,14 @@ void Display_Send_Vspead(uint8_t menu)
// uint8_t TCSPattern[4] = {0x54,0x43,0x53,0xFF};
// General_Number_Disp(TCSPattern, 3, 40+25+25+25+25+25+25+40);
if
(
zuozhuanget
==
1
)
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_cuo11
);
}
else
{
TFT_LCD_Draw_Bmp
(
3
+
40
+
60
+
60
,
40
+
25
+
25
+
25
+
25
+
25
+
25
,
(
uint8_t
*
)
gImage_dui11
);
}
break
;
case
4
:
...
...
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
View file @
27406b02
...
...
@@ -121,8 +121,8 @@
#define EN_5V_CUT_ENABLE GPIO_OUT_PORT00_PIN12
#define zuozhuan
aaa GPIO_IN_PORT10_PIN07
#define youzhuan
aaa GPIO_IN_APORT00_PIN15 //左转灯
#define zuozhuan
get GPIO_IN_PORT10_PIN07 //左转指示灯输出检测
#define youzhuan
get GPIO_IN_APORT00_PIN15 //右转指示灯输出检测
//zh:
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
27406b02
...
...
@@ -60,9 +60,6 @@ void Sys_Run_Mode_5ms_Tasks_Group(void)
/*==============================================================================
10ms����ִ������ ��0��
------------------------------------------------------------------------------*/
uint8_t
zuozhuan
[
100
]
=
{
0
};
uint8_t
i
=
0
;
uint8_t
j
=
0
;
void
Sys_Run_Mode_10ms_Tasks_Group
(
void
)
{
Key_Service
();
...
...
@@ -106,19 +103,6 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
{
TimeDelay_3s
();
PasswordUnlock
();
if
((
i
<
100
)
&&
(
j
<
100
))
{
zuozhuan
[
i
]
=
zuozhuanaaa
;
i
++
;
zuozhuan
[
j
]
=
zuozhuanaaa
;
j
++
;
}
else
{
i
=
0
;
j
=
0
;
}
static
uint32_t
loc_timer
=
0
;
loc_timer
++
;
...
...
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