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
3363934b
Commit
3363934b
authored
Jan 05, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加轮动重上电
parent
a5d58adb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+26
-2
Check_Ctrl.h
YueJin_test_bench/source/Appliciation/Check_Ctrl.h
+2
-2
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+1
-0
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
3363934b
...
...
@@ -540,6 +540,30 @@ void Read_IPK_Session_Type(void)//请求仪表发送 软硬件版本号 等数
}
}
}
//重上大电
uint8_t
resettime30
;
void
KL30_reset
(
void
)
{
if
(
MENU_CHECK_STEP
==
2
)
{
if
((
resettime30
<=
10
)
&&
(
delayflash
==
0
))
{
resettime30
++
;
RELAY_VBAT_MCU
=
0
;
}
else
{
resettime30
=
0
;
delayflash
=
1
;
RELAY_VBAT_MCU
=
1
;
}
}
else
{
resettime30
=
0
;
delayflash
=
0
;
}
}
uint8_t
settingtime
;
void
DefenseModeSettings
(
void
)
//设防模式设置
...
...
@@ -568,9 +592,10 @@ void DefenseModeSettings(void) //设防模式设置
}
uint8_t
RotationSettime
;
uint8_t
delayflash
;
void
RotationSet
(
void
)
{
if
(
MENU_CHECK_STEP
==
2
)
if
(
(
MENU_CHECK_STEP
==
2
)
&&
(
delayflash
==
1
)
)
{
RotationAlarmMode
=
1
;
if
(
RotationSettime
<=
10
)
...
...
@@ -601,7 +626,6 @@ void Function_Check_Ctrl(uint32_t cmd)
uint32_t
j
;
static
uint32_t
status
=
0
;
static
uint32_t
MENU_BACK
=
0xff
;
static
uint8_t
UDS_EunD
=
0
;
if
(
cmd
==
0
)
{
...
...
YueJin_test_bench/source/Appliciation/Check_Ctrl.h
View file @
3363934b
...
...
@@ -16,7 +16,7 @@ uint8_t Get_DID_High_Byte(uint16_t Input_DID);
uint8_t
Get_DID_Low_Byte
(
uint16_t
Input_DID
);
extern
void
DefenseModeSettings
(
void
);
extern
void
RotationSet
(
void
);
extern
void
KL30_reset
(
void
);
extern
unsigned
char
InterNal_Version
[
128
];
extern
unsigned
char
SW_Version
[
128
];
...
...
@@ -45,7 +45,7 @@ extern unsigned char KEYBUFFER [ 4 ];
extern
unsigned
int
CAN_Msg_Tx_Enable
;
extern
uint8_t
loc_Type_back
;
extern
uint8_t
LED_Waring
;
extern
uint8_t
delayflash
;
void
SET_IPK_NONE
(
void
);
void
Clear_IPK_NONE
(
void
);
void
CHECK_IPK_COUNT
(
void
);
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
3363934b
...
...
@@ -362,6 +362,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
BCDD_MCU_Service
();
KeyBackServic
();
RotationSet
();
KL30_reset
();
// DefenseModeSettings();
if
(
CHECK_Ctrl_delay
<
200
)
{
...
...
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