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
b5ac9af0
Commit
b5ac9af0
authored
Jan 27, 2026
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改左右转向输出检测逻辑
parent
ee712715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
14 deletions
+30
-14
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+30
-14
No files found.
YueJin_test_bench/source/Appliciation/Task.c
View file @
b5ac9af0
...
...
@@ -88,35 +88,51 @@ void Check_TurnLights_Voltage_Service(void)
voltageCheckTimer
=
0
;
if
(
MENU_CHECK_STEP
==
2
||
MENU_CHECK_STEP
==
11
)
{
if
(
processedLeftVoltage
>=
80
&&
processedLeftVoltage
<=
160
)
if
(
processedLeftVoltage
>=
80
&&
processedLeftVoltage
<=
160
&&
leftTurnLightVoltageOK
==
0
)
{
leftTurnLightVoltageOK
=
1
;
}
else
if
(
processedLeftVoltage
==
0
&&
leftTurnLightVoltageOK
==
1
)
{
leftTurnLightVoltageOK
=
2
;
}
else
if
(
leftTurnLightVoltageOK
==
2
&&
(
processedLeftVoltage
>=
80
&&
processedLeftVoltage
<=
160
))
{
leftTurnLightVoltageOK
=
3
;
}
GUI_General_Digit_Display
(
processedLeftVoltage
,
Num_15
,
3
,
2
,
TurnRL_Volate
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
25
+
30
);
}
if
(
MENU_CHECK_STEP
==
3
||
MENU_CHECK_STEP
==
11
)
{
if
(
processedRightVoltage
>=
80
&&
processedRightVoltage
<=
160
)
if
(
processedRightVoltage
>=
80
&&
processedRightVoltage
<=
160
&&
rightTurnLightVoltageOK
==
0
)
{
rightTurnLightVoltageOK
=
1
;
}
else
if
(
processedRightVoltage
==
0
&&
rightTurnLightVoltageOK
==
1
)
{
rightTurnLightVoltageOK
=
2
;
}
else
if
(
rightTurnLightVoltageOK
==
2
&&
(
processedRightVoltage
>=
80
&&
processedRightVoltage
<=
160
))
{
rightTurnLightVoltageOK
=
3
;
}
GUI_General_Digit_Display
(
processedRightVoltage
,
Num_15
,
3
,
2
,
TurnRL_Volate
,
40
+
25
+
25
+
25
+
25
+
25
+
25
+
25
+
25
+
30
);
}
}
// if(MENU_CHECK_STEP > 2 && leftTurnLightVoltageOK == 0
)
//
{
//
MENU_CHECK_STEP = 2;
//
}
// else if(MENU_CHECK_STEP > 3 && rightTurnLightVoltageOK == 0
)
//
{
//
MENU_CHECK_STEP = 3;
//
}
//
else
//
{
//
;
//
}
if
(
MENU_CHECK_STEP
>
2
&&
leftTurnLightVoltageOK
!=
3
)
{
MENU_CHECK_STEP
=
2
;
}
else
if
(
MENU_CHECK_STEP
>
3
&&
rightTurnLightVoltageOK
!=
3
)
{
MENU_CHECK_STEP
=
3
;
}
else
{
;
}
}
...
...
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