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
e4802ded
Commit
e4802ded
authored
May 13, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
坦克操控可以了,全部文件提交
parent
5a4d2c72
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
gpio_pwm_tank0202.c
system/gpio/gpio_pwm_tank0202.c
+7
-2
No files found.
CMakeLists.txt
View file @
e4802ded
cmake_minimum_required
(
VERSION 3.10
)
project
(
DeviceControlSystem
VERSION 1.1.
0
VERSION 1.1.
1
LANGUAGES C
)
...
...
system/gpio/gpio_pwm_tank0202.c
View file @
e4802ded
...
...
@@ -171,15 +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
)
{
//mode_lift_flont(val);
mode_right_flont
(
val
);
modecount
=
0
;
}
else
if
(
mode
==
2
)
{
}
else
if
(
mode
==
2
)
{
//mode_lift_back(val);
mode_right_back
(
val
);
modecount
=
1
;
}
else
if
(
mode
==
3
)
{
}
if
((
mode
==
1
||
mode
==
2
)
&&
val
==
0
)
modecount
=
0
;
if
(
mode
==
3
)
{
if
(
modecount
==
0
)
mode_lift_back
(
val
+
25
);
if
(
modecount
==
1
)
mode_lift_flont
(
val
+
25
);
}
else
if
(
mode
==
4
)
{
...
...
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