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
da2a7531
Commit
da2a7531
authored
Dec 31, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:制作老化台程序
parent
caf390c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
49 deletions
+35
-49
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+1
-1
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+26
-26
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+8
-22
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
da2a7531
...
...
@@ -73,7 +73,7 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
MENU_CHECK_STEP
++
;
if
(
MENU_CHECK_STEP
>
9
)
if
(
MENU_CHECK_STEP
>
3
)
{
MENU_CHECK_STEP
=
0
;
}
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
da2a7531
...
...
@@ -52,14 +52,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent) //上下ACC电
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
//
if(RELAY_KEY_MCU == 1)
//
{
//
RELAY_KEY_MCU = 0;
//
}
//
else
//
{
//
RELAY_KEY_MCU = 1;
//
}
if
(
RELAY_KEY_MCU
==
1
)
{
RELAY_KEY_MCU
=
0
;
}
else
{
RELAY_KEY_MCU
=
1
;
}
}
...
...
@@ -102,19 +102,19 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
Scroll_Wheel
<
100
)
{
Scroll_Wheel
++
;
}
else
{
Scroll_Wheel
=
0
;
}
//
if(Scroll_Wheel < 100)
//
{
//
Scroll_Wheel++;
//
}
//
else
//
{
//
Scroll_Wheel = 0;
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
// Key_Mode = 1; //左键
backflag
=
1
;
//
backflag = 1;
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
...
...
@@ -158,18 +158,18 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
Scroll_Wheel
>
0
)
{
Scroll_Wheel
--
;
}
else
{
Scroll_Wheel
=
100
;
}
//
if(Scroll_Wheel > 0)
//
{
//
Scroll_Wheel--;
//
}
//
else
//
{
//
Scroll_Wheel = 100;
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
Key_Mode
=
2
;
//右键
//
Key_Mode = 2; //右键
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
da2a7531
...
...
@@ -1111,34 +1111,23 @@ uint32_t R485_Send_test(void)
BCMLED
.
Sig
.
FlickerFrequency
=
0x00
;
//频率
case
0
:
// BCMLED.Sig.Lamp = 0x01; //左转
// BCMLED.Sig.FlickerFrequency = 0x05; //频率
// if((Key_Mode == 4) || (Key_Mode == 5))
// {
// BCMLED.Sig.HLLamp = 0x03; //远近光
// BCMLED.Sig.AutoLamp = 0x01; //自动大灯
// }
// else
// {
// BCMLED.Sig.HLLamp = 0x00;
// }
// Dashboard.Sig.textbit2 = 0x0A; //车速
// Dashboard.Sig.textbit7 = 0x7F; //P档
// u32sendendflag = R485_Send(0x04, Dashboard.Msg, sizeof(Dashboard.Msg));
BCMLED
.
Sig
.
Lamp
=
0x01
;
//左转
BCMLED
.
Sig
.
FlickerFrequency
=
0x05
;
//频率
break
;
case
1
:
// BCMLED.Sig.Lamp = 0x00; //左
转
// BCMLED.Sig.FlickerFrequency = 0x00
; //频率
BCMLED
.
Sig
.
Lamp
=
0x02
;
//右
转
BCMLED
.
Sig
.
FlickerFrequency
=
0x05
;
//频率
break
;
case
2
:
BCMLED
.
Sig
.
HLLamp
=
0x02
;
//远光
break
;
case
3
:
// AIMAtest.Sig.PGear = 0;
// u32sendendflag = R485_Send(0x05, AIMAtest.Msg, sizeof(AIMAtest.Msg));
BCMLED
.
Sig
.
HLLamp
=
0x02
;
//远光
BCMLED
.
Sig
.
Lamp
=
0x03
;
//左转
BCMLED
.
Sig
.
FlickerFrequency
=
0x05
;
//频率
break
;
case
4
:
...
...
@@ -1147,9 +1136,6 @@ uint32_t R485_Send_test(void)
break
;
case
5
:
BCMLED
.
Sig
.
HLLamp
=
0x02
;
//远光
BCMLED
.
Sig
.
Lamp
=
0x03
;
//双闪
BCMLED
.
Sig
.
FlickerFrequency
=
0x05
;
//频率
break
;
case
6
:
...
...
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