Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
19bc2499
Commit
19bc2499
authored
Feb 11, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🦄
refactor:优化刀盘挡位显示逻辑
parent
fa1bbec1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+3
-22
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
19bc2499
...
@@ -55,11 +55,8 @@ void Gauge_Cutterhead_Gear_Display(void)
...
@@ -55,11 +55,8 @@ void Gauge_Cutterhead_Gear_Display(void)
{
{
uint8_t
CutterheadValue
=
Get_Gear_Cutterhead_Value
();
uint8_t
CutterheadValue
=
Get_Gear_Cutterhead_Value
();
uint8_t
CutterheadValid
=
Get_Gear_Cutterhead_Valid
();
uint8_t
CutterheadValid
=
Get_Gear_Cutterhead_Valid
();
// uint8_t MBMS_StatBattWorkState = Get_CAN_CH0_ID_18203220_Sig_MBMS_StatBattWorkState();
if
(
CutterheadValid
==
2U
)
if
(
CutterheadValid
==
2U
)
{
if
(
CutterheadValue
>
0U
)
{
{
if
(
FLASH_SYNC_1Hz
)
if
(
FLASH_SYNC_1Hz
)
{
{
...
@@ -72,23 +69,7 @@ void Gauge_Cutterhead_Gear_Display(void)
...
@@ -72,23 +69,7 @@ void Gauge_Cutterhead_Gear_Display(void)
}
}
else
else
{
{
SEG_SET_Cutterhead
(
1
,
4
,
0
);
SEG_SET_Cutterhead
(
CutterheadValid
,
CutterheadValue
,
0
);
}
}
else
if
(
CutterheadValid
==
1U
)
{
if
(
CutterheadValue
>
0U
)
{
SEG_SET_Cutterhead
(
1
,
CutterheadValue
,
0
);
}
else
{
SEG_SET_Cutterhead
(
1
,
4
,
0
);
}
}
else
{
SEG_SET_Cutterhead
(
0
,
0
,
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