Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mmroma
coop_payload_sim
Commits
96a4f201
Commit
96a4f201
authored
Jun 25, 2021
by
yean
Browse files
Position offset on hover test looks ressonable
parent
5c83087c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Controllers/setPIDgains.m
View file @
96a4f201
...
...
@@ -3,29 +3,29 @@ function [vehicle_params] = setPIDgains(vehicle_params)
%% Position -> Velocity
% x
vehicle_params
.
PIDctrl
.
x
.
kP
=
4
;
vehicle_params
.
PIDctrl
.
x
.
kP
=
2
;
% y
vehicle_params
.
PIDctrl
.
y
.
kP
=
4
;
vehicle_params
.
PIDctrl
.
y
.
kP
=
2
;
% z
vehicle_params
.
PIDctrl
.
z
.
kP
=
10
;
vehicle_params
.
PIDctrl
.
z
.
kP
=
8
;
vehicle_params
.
PIDctrl
.
z
.
kI
=
0
;
vehicle_params
.
PIDctrl
.
z
.
kD
=
0
;
vehicle_params
.
PIDctrl
.
z
.
kD
=
1
;
%% Velocity -> Acceleration
% x-dot
vehicle_params
.
PIDctrl
.
x_dot
.
kP
=
2.
5
;
vehicle_params
.
PIDctrl
.
x_dot
.
kP
=
5
;
vehicle_params
.
PIDctrl
.
x_dot
.
kI
=
0
;
vehicle_params
.
PIDctrl
.
x_dot
.
kD
=
0
;
% y-dot
vehicle_params
.
PIDctrl
.
y_dot
.
kP
=
2.
5
;
vehicle_params
.
PIDctrl
.
y_dot
.
kP
=
5
;
vehicle_params
.
PIDctrl
.
y_dot
.
kI
=
0
;
vehicle_params
.
PIDctrl
.
y_dot
.
kD
=
0
;
% z-dot
vehicle_params
.
PIDctrl
.
z_dot
.
kP
=
2.8
;
vehicle_params
.
PIDctrl
.
z_dot
.
kP
=
5
;
vehicle_params
.
PIDctrl
.
z_dot
.
kI
=
0
;
vehicle_params
.
PIDctrl
.
z_dot
.
kD
=
0
;
...
...
@@ -41,7 +41,7 @@ function [vehicle_params] = setPIDgains(vehicle_params)
vehicle_params
.
PIDctrl
.
pitch
.
kD
=
0
;
% Yaw
vehicle_params
.
PIDctrl
.
yaw
.
kP
=
16
;
vehicle_params
.
PIDctrl
.
yaw
.
kP
=
8
;
vehicle_params
.
PIDctrl
.
yaw
.
kI
=
0
;
vehicle_params
.
PIDctrl
.
yaw
.
kD
=
0
;
...
...
Write
Preview
Supports
Markdown
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