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
2c5f6c15
Commit
2c5f6c15
authored
Sep 18, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加燃油检测自动上下电
parent
48c28b97
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+2
-2
Key.h
YueJin_test_bench/source/Appliciation/Key.h
+1
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+5
-0
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+17
-0
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
2c5f6c15
...
@@ -595,8 +595,8 @@ void Function_Check_Ctrl(uint32_t cmd)
...
@@ -595,8 +595,8 @@ void Function_Check_Ctrl(uint32_t cmd)
// LINE_OUT_NEG_08 = 0;
// LINE_OUT_NEG_08 = 0;
// LINE_OUT_NEG_09 = 0;
// LINE_OUT_NEG_09 = 0;
// LINE_OUT_NEG_10 = 0;
// LINE_OUT_NEG_10 = 0;
POWER_CTRL_KL30
=
1u
;
//B+
//
POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15
=
1u
;
//KL15
//
POWER_CTRL_KL15 = 1u; //KL15
/*正控*/
/*正控*/
LINE_OUT_POS_02
=
0
;
//远光
LINE_OUT_POS_02
=
0
;
//远光
LINE_OUT_POS_04
=
0
;
//左转
LINE_OUT_POS_04
=
0
;
//左转
...
...
YueJin_test_bench/source/Appliciation/Key.h
View file @
2c5f6c15
...
@@ -79,6 +79,7 @@ extern uint8_t rightkeytime;
...
@@ -79,6 +79,7 @@ extern uint8_t rightkeytime;
extern
uint8_t
middlekey
;
extern
uint8_t
middlekey
;
extern
uint8_t
middlekeytime
;
extern
uint8_t
middlekeytime
;
extern
uint8_t
clear_odo
;
extern
uint8_t
clear_odo
;
extern
uint8_t
IG_OFF_Flag
;
extern
void
Key_Init
(
void
);
extern
void
Key_Init
(
void
);
extern
void
Key_Service
(
void
);
/*10ms*/
extern
void
Key_Service
(
void
);
/*10ms*/
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
2c5f6c15
...
@@ -171,12 +171,17 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
...
@@ -171,12 +171,17 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
}
}
}
}
}
}
uint8_t
IG_OFF_Flag
;
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
Meterfieldstep
=
0
;
Meterfieldstep
=
0
;
MENU_CHECK_STEP_ADD
(
);
MENU_CHECK_STEP_ADD
(
);
if
((
MENU_CHECK_STEP
<
7
)
&&
(
MENU_CHECK_STEP
>
0
))
{
IG_OFF_Flag
=
1
;
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
2c5f6c15
...
@@ -216,6 +216,7 @@ void Sys_Run_Mode_50ms_Tasks_Group(void)
...
@@ -216,6 +216,7 @@ void Sys_Run_Mode_50ms_Tasks_Group(void)
uint16_t
u16LJSText
;
uint16_t
u16LJSText
;
uint8_t
time300ms
;
uint8_t
time300ms
;
uint8_t
clear_odo_time
;
uint8_t
clear_odo_time
;
uint8_t
delay_time
;
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
{
static
uint32_t
loc_timer
=
0
;
static
uint32_t
loc_timer
=
0
;
...
@@ -259,6 +260,22 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
...
@@ -259,6 +260,22 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
key_right
=
0
;
key_right
=
0
;
}
}
}
}
if
(
IG_OFF_Flag
)
{
if
(
delay_time
<
10
)
{
POWER_CTRL_KL15
=
0u
;
//KL15
delay_time
++
;
}
else
{
delay_time
=
0
;
IG_OFF_Flag
=
0
;
POWER_CTRL_KL15
=
1u
;
//KL15
}
}
}
}
/*=================================================================*/
/*=================================================================*/
...
...
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