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
6b0cc17f
Commit
6b0cc17f
authored
Jun 04, 2025
by
李梓源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:标准检测程序
parent
c27e4a8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
40 deletions
+33
-40
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+17
-24
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+16
-16
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
6b0cc17f
...
@@ -72,18 +72,18 @@ void Function_Check_Ctrl(uint32_t cmd);
...
@@ -72,18 +72,18 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
void
MENU_CHECK_STEP_ADD
(
void
)
{
{
//
MENU_CHECK_STEP++;
MENU_CHECK_STEP
++
;
//
if(MENU_CHECK_STEP > 8)
if
(
MENU_CHECK_STEP
>
8
)
//
{
{
//
MENU_CHECK_STEP = 0;
MENU_CHECK_STEP
=
0
;
//
}
}
}
}
void
MENU_CHECK_STEP_SUB
(
void
)
void
MENU_CHECK_STEP_SUB
(
void
)
{
{
//
if ( MENU_CHECK_STEP != 0 )
if
(
MENU_CHECK_STEP
!=
0
)
//
{
{
//
MENU_CHECK_STEP--;
MENU_CHECK_STEP
--
;
//
}
}
...
@@ -590,29 +590,22 @@ void Function_Check_Ctrl(uint32_t cmd)
...
@@ -590,29 +590,22 @@ void Function_Check_Ctrl(uint32_t cmd)
Display_Send_Vspead
(
MENU_CHECK_STEP
);
Display_Send_Vspead
(
MENU_CHECK_STEP
);
switch
(
MENU_CHECK_STEP
)
switch
(
MENU_CHECK_STEP
)
{
{
case
0
:
case
0
:
{
{
RELAY_VBAT_MCU
=
1
;
if
(
CHECK_Ctrl_delay
<=
10
)
RELAY_DC12V_MCU
=
1
;
left_turn
=
1
;
if
(
ACCONOFF_delay_3s
<=
30
)
{
{
RELAY_VBAT_MCU
=
0
;
RELAY_DC12V_MCU
=
0
;
RELAY_KEY_MCU
=
0
;
RELAY_KEY_MCU
=
0
;
}
}
else
else
{
{
RELAY_VBAT_MCU
=
1
;
RELAY_DC12V_MCU
=
1
;
RELAY_KEY_MCU
=
1
;
RELAY_KEY_MCU
=
1
;
// Aima_SLF(1u, 0x04, 0x1, 1u);
// left_turn = 1;
}
}
if
(
ACCONOFF_delay_3s
>=
35
&&
ACCONOFF_delay_3s
<=
60
)
{
ONE_START
==
1
;
}
else
{
ONE_START
=
0
;
}
break
;
break
;
}
}
case
1
:
case
1
:
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
6b0cc17f
...
@@ -126,23 +126,23 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
...
@@ -126,23 +126,23 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
}
}
void
Key_Operation_SW3
(
Key_Event_en_t
enKeyEvent
)
void
Key_Operation_SW3
(
Key_Event_en_t
enKeyEvent
)
{
{
//
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
//
{
{
//
}
}
//
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
//
{
{
//
}
}
//
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
//
{
{
//
if(Get_Display_Type( ) == 2)
if
(
Get_Display_Type
(
)
==
2
)
//
{
{
//
MENU_CHECK_STEP_SUB( );
MENU_CHECK_STEP_SUB
(
);
//
}
}
//
}
}
//
else
else
//
{
{
//
}
}
}
}
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
{
{
...
...
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