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
35802083
Commit
35802083
authored
Feb 09, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:残影测试程序增加车速掉线按键
parent
7f7f4604
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
+26
-8
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+1
-1
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+10
-2
api_RS485.c
YueJin_test_bench/source/Appliciation/api_RS485.c
+14
-5
api_RS485.h
YueJin_test_bench/source/Appliciation/api_RS485.h
+1
-0
No files found.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
35802083
...
...
@@ -4925,7 +4925,7 @@ void Display_Version_Info(uint32_t ON_OFF)
// TFT_LCD_Draw_Bmp(3, 160, ( uint8_t * )gImage_Alarm_12_WordX6_Y165); //24脚输出占空比
// TFT_LCD_Draw_Bmp(210, 160, ( uint8_t * )gImage_Alarm_13_ImageX222_Y166); //%
TFT_LCD_Draw_Bmp(3, 290, ( uint8_t * )gImage_gImage_checkVX6_Y165 ); //检测台版本号
uint8_t mbuff [7] = {2,6,0,
1,2,3
,0xff};
uint8_t mbuff [7] = {2,6,0,
2,0,9
,0xff};
General_Number_Disp(mbuff, 160, 290);
}
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
35802083
...
...
@@ -26,6 +26,14 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步
// MENU_CHECK_STEP_ADD( );
// }
// }
if
(
testflag
==
1
)
{
testflag
=
0
;
}
else
{
testflag
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -128,7 +136,7 @@ void Key_Operation_SW9(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
//下移位
{
//
downkeyflag = 1;
downkeyflag
=
1
;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
//P2P模式
{
...
...
@@ -204,7 +212,7 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
//上移位
{
//
upkeyflag = 1;
upkeyflag
=
1
;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
//AP模式
{
...
...
YueJin_test_bench/source/Appliciation/api_RS485.c
View file @
35802083
...
...
@@ -502,6 +502,7 @@ uint8_t getbanbenhaoflag = 0;
uint32_t
send80time
=
0
;
uint8_t
BlueTooth
=
0
;
uint8_t
dianliangflag
=
0
;
uint8_t
testflag
;
uint8_t
RS485_User_Tx_Data
(
void
)
{
uint32_t
sendfinishflag
=
0
;
...
...
@@ -569,6 +570,8 @@ uint8_t RS485_User_Tx_Data(void)
break
;
case
RS485_Tx_IDD2_Idx
:
if
(
testflag
==
0
)
{
sendfinishflag
=
R485_Send_0xD2
();
RS485_TX_finish
=
1
;
if
(
sendfinishflag
==
0
)
...
...
@@ -580,6 +583,12 @@ uint8_t RS485_User_Tx_Data(void)
{
RS485_TxControl
.
sendIndex
++
;
}
}
else
{
RS485_TxControl
.
sendIndex
++
;
}
break
;
case
RS485_Tx_IDD3_Idx
:
...
...
YueJin_test_bench/source/Appliciation/api_RS485.h
View file @
35802083
...
...
@@ -78,6 +78,7 @@ extern uint8_t RS485_TX_finish;
extern
uint8_t
BlueTooth
;
extern
uint8_t
dianliangflag
;
extern
uint8_t
sendmsgAll
[
8
];
extern
uint8_t
testflag
;
extern
uint32_t
R485_Send
(
const
uint16_t
cmdID
,
const
uint8_t
*
pData
,
uint8_t
len
);
extern
uint16_t
Yadi_CAL_Data_Sum
(
uint8_t
*
pu8LinData
,
uint8_t
u8LinLen
);
extern
uint8_t
RS485_User_Tx_Data
(
void
);
...
...
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