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
20fa0f2c
Commit
20fa0f2c
authored
Aug 15, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
减少了水坦克的bug,换了发射接口
parent
8b00337c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
version.h
build/include/version.h
+1
-1
main
build/main
+0
-0
gpio_control.c
drivers/gpio/gpio_control.c
+3
-2
No files found.
CMakeLists.txt
View file @
20fa0f2c
cmake_minimum_required
(
VERSION 3.10
)
project
(
car
VERSION 1.2.
5
VERSION 1.2.
6
LANGUAGES C
)
...
...
build/include/version.h
View file @
20fa0f2c
#define PROJECT_VERSION_MAJOR 1
#define PROJECT_VERSION_MINOR 2
#define PROJECT_VERSION_PATCH
5
#define PROJECT_VERSION_PATCH
6
#define GIT_HASH ""
#define BUILD_TIMESTAMP ""
#define BUILD_USER ""
build/main
View file @
20fa0f2c
No preview for this file type
drivers/gpio/gpio_control.c
View file @
20fa0f2c
...
...
@@ -106,7 +106,7 @@ const gpiocontrol_t gpio_configs[] = {
{
.
device_id
=
DEVICE_TANK0206
,
.
device_pin_value
=
public_pin_value
,
.
device_pwm_value
=
tank020
3
_pwm_value
.
device_pwm_value
=
tank020
6
_pwm_value
},
{
.
device_id
=
DEVICE_SHIP0301
,
...
...
@@ -319,13 +319,14 @@ void tank0206_pwm_value(int pin,int value) { //软件陪我们控制调速
if
(
value
==
1
)
{
if
(
pin
==
27
){
softPwmWrite
(
pin
,
50
);
softPwmWrite
(
26
,
35
);
}
else
{
softPwmWrite
(
pin
,
35
);
my_zlog_debug
(
"pwm:%d"
,
pin
);
}
}
else
if
(
value
==
0
)
{
if
(
pin
==
27
)
softPwmWrite
(
26
,
0
);
softPwmWrite
(
pin
,
0
);
my_zlog_debug
(
"pwm:%d,0"
,
pin
);
}
...
...
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