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
f1ef53db
Commit
f1ef53db
authored
Feb 06, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:上一步未检验通过,限制下一步
parent
03795fc7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
296 additions
and
61 deletions
+296
-61
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+18
-2
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+254
-58
Display_Info.h
YueJin_test_bench/source/Appliciation/Display_Info.h
+1
-0
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+5
-0
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+18
-1
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
f1ef53db
...
...
@@ -72,7 +72,16 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
MENU_CHECK_STEP
++
;
if
(
step_check
==
2
)
{
step_check
=
0
;
MENU_CHECK_STEP
++
;
if
((
MENU_CHECK_STEP
==
3
)
||
(
MENU_CHECK_STEP
==
5
))
{
step_check
=
1
;
}
}
if
(
MENU_CHECK_STEP
>
9
)
{
MENU_CHECK_STEP
=
1
;
...
...
@@ -661,12 +670,15 @@ void Function_Check_Ctrl(uint32_t cmd)
switch
(
MENU_CHECK_STEP
)
{
case
0
:
//仪表下电设防
RELAY_KEY_MCU
=
0
;
break
;
case
1
:
//检测震动报警
RELAY_KEY_MCU
=
0
;
break
;
case
2
:
//检测轮动报警
RELAY_KEY_MCU
=
0
;
break
;
case
3
:
//上电指示灯自检
...
...
@@ -678,20 +690,24 @@ void Function_Check_Ctrl(uint32_t cmd)
break
;
case
5
:
//左转右转远光
RELAY_KEY_MCU
=
0
;
break
;
case
6
:
//光感检测
RELAY_KEY_MCU
=
0
;
break
;
case
7
:
//坐桶锁
RELAY_KEY_MCU
=
0
;
ONEKEYFlag
=
2
;
//双击一键启动
break
;
case
8
:
//边撑下电
RELAY_KEY_MCU
=
0
;
BCDD_MCU_Flag
=
1
;
break
;
case
9
:
//按键
case
9
:
RELAY_KEY_MCU
=
1
;
break
;
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
f1ef53db
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/Display_Info.h
View file @
f1ef53db
...
...
@@ -53,6 +53,7 @@ extern uint8_t ZTSVOK_A;
extern
uint8_t
ZTSVOK_B
;
extern
uint8_t
RotationAlarmFlag
;
extern
uint8_t
RotationAlarmMode
;
extern
uint8_t
step_check
;
void
GeneralInfoDisp
(
unsigned
char
*
p
,
unsigned
short
x
,
unsigned
short
y
);
void
Display_Title_Info
(
void
);
void
Display_Version_Info
(
uint32_t
ON_OFF
);
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
f1ef53db
...
...
@@ -2,6 +2,7 @@
#include "Barcode_Scanner.h"
#include "string.h"
#include "Key.h"
#include "Display_Info.h"
uint8_t
barcode_Msg
[
64
];
uint8_t
barcode_Msg1
[
64
];
uint8_t
name1
=
0
;
...
...
@@ -1156,6 +1157,10 @@ uint32_t R485_Send_test(void)
if
(
AutoLampState
)
//1自动大灯开启,0熄灭
{
BCMLED
.
Sig
.
AutoLamp
=
0x01
;
//自动大灯
if
(
step_check
==
0
)
{
step_check
=
1
;
}
}
else
{
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
f1ef53db
...
...
@@ -353,9 +353,26 @@ void KeyBackServic(void)
FanHui
=
0
;
}
}
uint8_t
delay2stime
;
//100ms时间片中使用
void
Delay2s
(
void
)
{
if
(
step_check
==
1
)
{
if
(
delay2stime
<=
30
)
{
delay2stime
++
;
}
else
{
delay2stime
=
0
;
step_check
=
2
;
}
}
}
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
// Aima_SLF(1,1,1,1);
Delay2s
();
//当前步骤检测内容触发后延时2s下一步
Display_PageNum
();
ONE_KEY_Display
();
RotationAlarm
();
...
...
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