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
c7c8bf79
Commit
c7c8bf79
authored
May 14, 2025
by
957dd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/tank_backchange' into 'master'
Feature/tank backchange See merge request
!31
parents
da072c9c
5a4d2c72
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
CMakeCache.txt
build/CMakeCache.txt
+2
-2
gpio_pwm_tank0202.c.o
build/CMakeFiles/main.dir/system/gpio/gpio_pwm_tank0202.c.o
+0
-0
version.h
build/include/version.h
+2
-2
main
build/main
+0
-0
gpio_pwm_tank0202.c
system/gpio/gpio_pwm_tank0202.c
+8
-5
No files found.
build/CMakeCache.txt
View file @
c7c8bf79
...
...
@@ -122,7 +122,7 @@ CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
CMAKE_PROJECT_NAME:STATIC=DeviceControlSystem
//Value Computed by CMake
CMAKE_PROJECT_VERSION:STATIC=1.1.
0
CMAKE_PROJECT_VERSION:STATIC=1.1.
1
//Value Computed by CMake
CMAKE_PROJECT_VERSION_MAJOR:STATIC=1
...
...
@@ -131,7 +131,7 @@ CMAKE_PROJECT_VERSION_MAJOR:STATIC=1
CMAKE_PROJECT_VERSION_MINOR:STATIC=1
//Value Computed by CMake
CMAKE_PROJECT_VERSION_PATCH:STATIC=
0
CMAKE_PROJECT_VERSION_PATCH:STATIC=
1
//Value Computed by CMake
CMAKE_PROJECT_VERSION_TWEAK:STATIC=
...
...
build/CMakeFiles/main.dir/system/gpio/gpio_pwm_tank0202.c.o
View file @
c7c8bf79
No preview for this file type
build/include/version.h
View file @
c7c8bf79
#define PROJECT_VERSION_MAJOR 1
#define PROJECT_VERSION_MINOR 1
#define PROJECT_VERSION_PATCH
0
#define PROJECT_VERSION_PATCH
1
#define GIT_HASH ""
#define BUILD_TIMESTAMP "2025-05-1
2T08:19:1
2"
#define BUILD_TIMESTAMP "2025-05-1
3T16:13:2
2"
#define BUILD_USER "orangepi"
build/main
View file @
c7c8bf79
No preview for this file type
system/gpio/gpio_pwm_tank0202.c
View file @
c7c8bf79
...
...
@@ -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