Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
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
wenzhongjian
car-controlserver
Commits
fe5a2136
Commit
fe5a2136
authored
May 13, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了后退的逻辑
parent
da072c9c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
gpio_pwm_tank0202.c.o
build/CMakeFiles/main.dir/system/gpio/gpio_pwm_tank0202.c.o
+0
-0
main
build/main
+0
-0
gpio_pwm_tank0202.c
system/gpio/gpio_pwm_tank0202.c
+8
-5
No files found.
build/CMakeFiles/main.dir/system/gpio/gpio_pwm_tank0202.c.o
View file @
fe5a2136
No preview for this file type
build/main
View file @
fe5a2136
No preview for this file type
system/gpio/gpio_pwm_tank0202.c
View file @
fe5a2136
...
...
@@ -171,18 +171,20 @@ void mode_right_back(unsigned char gval) {
int
tank0202_change
(
unsigned
char
*
buf
)
{
unsigned
char
mode
=
buf
[
1
];
unsigned
char
val
=
buf
[
2
];
if
(
mode
==
1
&&
modecount
==
0
)
{
if
(
mode
==
1
)
{
//mode_lift_flont(val);
mode_right_flont
(
val
);
modecount
=
0
;
}
else
if
(
mode
==
2
)
{
//mode_lift_back(val);
mode_right_back
(
val
);
modecount
=
1
;
}
else
if
(
mode
==
3
)
{
mode_lift_back
(
val
+
25
);
//mode_right_flont(80
);
if
(
modecount
==
0
)
mode_lift_back
(
val
+
25
);
if
(
modecount
==
1
)
mode_lift_flont
(
val
+
25
);
}
else
if
(
mode
==
4
)
{
mode_lift_flont
(
val
+
25
);
//mode_right_back(80
);
if
(
modecount
==
0
)
mode_lift_flont
(
val
+
25
);
if
(
modecount
==
1
)
mode_lift_back
(
val
+
25
);
}
}
\ No newline at end of file
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