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
e769d819
You need to sign in or sign up before continuing.
Commit
e769d819
authored
Feb 27, 2026
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二提腿修改
parent
4e3b30d6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
main
build/main
+0
-0
ptz0404_control.c
drivers/devicecontrol/ptz0404_control.c
+6
-6
gpio_control.c
drivers/gpio/gpio_control.c
+6
-0
No files found.
build/main
View file @
e769d819
No preview for this file type
drivers/devicecontrol/ptz0404_control.c
View file @
e769d819
...
...
@@ -11,21 +11,21 @@
// --- 水平方向 (左右) 参数 ---
// 为了配合“立即停止”,建议适当加大加速度,让起步也更灵敏
#define PAN_MAX_SPEED 80.0f // 左右最大速度 °/s
#define PAN_ACCEL 1
5
0.0f // 左右加速度 °/s²
#define PAN_ACCEL 1
8
0.0f // 左右加速度 °/s²
// --- 垂直方向 (上下) 参数 ---
#define TILT_MAX_SPEED 50.0f // 上下最大速度 °/s
#define TILT_ACCEL
10
0.0f // 上下加速度 °/s²
#define TILT_ACCEL
8
0.0f // 上下加速度 °/s²
#define STOP_DEADZONE 0.2f // 停止死区(度)
/* ===================== 角度限位 ===================== */
#define PAN_ANGLE_INITIAL 135.0f
#define PAN_MIN_ANGLE
75
.0f
#define PAN_MAX_ANGLE 1
95
.0f
#define PAN_MIN_ANGLE
90
.0f
#define PAN_MAX_ANGLE 1
80
.0f
#define TILT_ANGLE_INITIAL
8
0.0f
#define TILT_MIN_ANGLE 3
0
.0f
#define TILT_ANGLE_INITIAL
7
0.0f
#define TILT_MIN_ANGLE 3
5
.0f
#define TILT_MAX_ANGLE 90.0f
/* ===================== 对象初始化 ===================== */
...
...
drivers/gpio/gpio_control.c
View file @
e769d819
...
...
@@ -290,6 +290,12 @@ const gpiocontrol_t gpio_configs[] = {
.
device_pwm_value
=
public_pwm_value
},
{
.
device_id
=
DEVICE_PAO_PTZ0404
,
.
category_id
=
0
,
.
device_pin_value
=
ptz0401_pin_value
,
.
device_pwm_value
=
public_pwm_value
},
{
.
device_id
=
DEVICE_ROBOT_DOG0501
,
.
category_id
=
0
,
.
device_pin_value
=
public_pin_value
,
...
...
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