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
6e3316b1
Commit
6e3316b1
authored
Jul 04, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:检测台终版
parent
772d0fe1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
42 deletions
+82
-42
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+1
-1
CAN_Communication_Matrix.c
...test_bench/source/Appliciation/CAN_Communication_Matrix.c
+2
-2
CAN_Communication_Matrix.h
...test_bench/source/Appliciation/CAN_Communication_Matrix.h
+1
-1
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+1
-1
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+1
-1
Key.h
YueJin_test_bench/source/Appliciation/Key.h
+1
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+58
-36
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+17
-0
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
6e3316b1
...
...
@@ -1072,7 +1072,7 @@ void can_submit(void)
data2
[
4
]
=
0x13
;
init_CAN_Frame
(
&
m_msg2
,
0x600
,
8
,
1
,
data2
);
data3
[
0
]
=
0x2E
;
//手机电量
data3
[
1
]
=
0xF
4
;
//未接指示灯,音乐
data3
[
1
]
=
0xF
6
;
//未接指示灯,音乐
data3
[
3
]
=
0x12
;
//加热手柄指示灯
init_CAN_Frame
(
&
m_msg3
,
0x687
,
8
,
1
,
data3
);
...
...
YueJin_test_bench/source/Appliciation/CAN_Communication_Matrix.c
View file @
6e3316b1
...
...
@@ -264,9 +264,9 @@ uint8_t Get_CAN_CH0_ID_590_Engine_Fault_Sig(void)
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0_ID_0x590_Msg_Count
,
2u
)
>>
6u
)
&
0x01u
));
}
uint8_t
Get_CAN_CH0_ID_
10
0_oilPressuret_Sig
(
void
)
uint8_t
Get_CAN_CH0_ID_
59
0_oilPressuret_Sig
(
void
)
{
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0_ID_0x590_Msg_Count
,
5u
)
>>
0
u
)
&
0x01u
));
return
(((
uint8_t
)((
uint8_t
)
CAN_MSG_Read
(
CAN_CH0_ID_0x590_Msg_Count
,
2u
)
>>
7
u
)
&
0x01u
));
}
uint8_t
Get_CAN_CH0_ID_590_low_fuel_level_Sig
(
void
)
...
...
YueJin_test_bench/source/Appliciation/CAN_Communication_Matrix.h
View file @
6e3316b1
...
...
@@ -74,7 +74,7 @@ extern uint8_t Get_CAN_CH0_ID_7EB_byte5_Sig(void);
extern
uint8_t
Get_CAN_CH0_ID_7EB_byte6_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_7EB_byte7_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_68B_Fuel_Divisions_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_
10
0_oilPressuret_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_
59
0_oilPressuret_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_590_low_fuel_level_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_590_High_TELL_Sig
(
void
);
extern
uint8_t
Get_CAN_CH0_ID_590_Engine_Fault_Sig
(
void
);
...
...
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
6e3316b1
...
...
@@ -69,7 +69,7 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
if
(
MENU_CHECK_STEP
>
10
)
if
(
MENU_CHECK_STEP
>
9
)
{
MENU_CHECK_STEP
=
0
;
}
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
6e3316b1
...
...
@@ -5590,7 +5590,7 @@ void Display_Send_Vspead(uint8_t menu)
fuel_divisions = Get_CAN_CH0_ID_68B_Fuel_Divisions_Sig();
highlamp_output = Get_CAN_CH0_ID_590_High_TELL_Sig();
engine_fault_output = Get_CAN_CH0_ID_590_Engine_Fault_Sig();
oilPressure = Get_CAN_CH0_ID_
10
0_oilPressuret_Sig();
oilPressure = Get_CAN_CH0_ID_
59
0_oilPressuret_Sig();
low_fuel_level = Get_CAN_CH0_ID_590_low_fuel_level_Sig();
fuel_divisions_display[0] = fuel_divisions;
...
...
YueJin_test_bench/source/Appliciation/Key.h
View file @
6e3316b1
...
...
@@ -78,6 +78,7 @@ extern uint8_t rightkey;
extern
uint8_t
rightkeytime
;
extern
uint8_t
middlekey
;
extern
uint8_t
middlekeytime
;
extern
uint8_t
clear_odo
;
extern
void
Key_Init
(
void
);
extern
void
Key_Service
(
void
);
/*10ms*/
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
6e3316b1
...
...
@@ -6,12 +6,16 @@
uint8_t
rightkey
;
uint8_t
rightkeytime
;
uint8_t
clear_odo
;
void
Key_Operation_SW5
(
Key_Event_en_t
enKeyEvent
)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
key_right
=
1
;
rightkey
=
1
;
if
(
clear_odo
==
0
)
{
key_right
=
1
;
rightkey
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -23,22 +27,25 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
}
else
{
if
(
rightkey
)
if
(
clear_odo
==
0
)
{
if
(
rightkey
time
<
10
)
if
(
rightkey
)
{
;
if
(
rightkeytime
<
10
)
{
;
}
else
{
rightkey
=
0
;
rightkeytime
=
0
;
}
}
else
{
rightkey
=
0
;
rightkeytime
=
0
;
key_right
=
0
;
}
}
else
{
key_right
=
0
;
}
}
}
uint8_t
leftkey
;
...
...
@@ -47,8 +54,11 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
key_left
=
1
;
leftkey
=
1
;
if
(
clear_odo
==
0
)
{
key_left
=
1
;
leftkey
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -60,22 +70,25 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
}
else
{
if
(
leftkey
)
if
(
clear_odo
==
0
)
{
if
(
leftkey
time
<
10
)
if
(
leftkey
)
{
;
if
(
leftkeytime
<
10
)
{
;
}
else
{
leftkey
=
0
;
leftkeytime
=
0
;
}
}
else
{
leftkey
=
0
;
leftkeytime
=
0
;
key_left
=
0
;
}
}
else
{
key_left
=
0
;
}
}
}
void
Key_Operation_SW7
(
Key_Event_en_t
enKeyEvent
)
...
...
@@ -94,12 +107,15 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
{
}
}
void
Key_Operation_SW8
(
Key_Event_en_t
enKeyEvent
)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
MENU_CHECK_STEP
==
9
)
{
clear_odo
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -118,8 +134,11 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
key_middle
=
1
;
middlekey
=
1
;
if
(
clear_odo
==
0
)
{
key_middle
=
1
;
middlekey
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -131,22 +150,25 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
}
else
{
if
(
middlekey
)
if
(
clear_odo
==
0
)
{
if
(
middlekey
time
<
10
)
if
(
middlekey
)
{
;
if
(
middlekeytime
<
10
)
{
;
}
else
{
middlekey
=
0
;
middlekeytime
=
0
;
}
}
else
{
middlekey
=
0
;
middlekeytime
=
0
;
key_middle
=
0
;
}
}
else
{
key_middle
=
0
;
}
}
}
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
6e3316b1
...
...
@@ -215,6 +215,7 @@ void Sys_Run_Mode_50ms_Tasks_Group(void)
------------------------------------------------------------------------------*/
uint16_t
u16LJSText
;
uint8_t
time300ms
;
uint8_t
clear_odo_time
;
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
static
uint32_t
loc_timer
=
0
;
...
...
@@ -242,6 +243,22 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Buzzer_Start
();
Total_Check
(
);
//u16LJSText = TFT_LCD_REQ_FIFO_MAX_DEPTH;
if
(
clear_odo
)
{
if
(
clear_odo_time
<
52
)
{
clear_odo_time
++
;
key_left
=
1
;
key_right
=
1
;
}
else
{
clear_odo
=
0
;
clear_odo_time
=
0
;
key_left
=
0
;
key_right
=
0
;
}
}
}
/*=================================================================*/
...
...
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