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
2230dbf3
Commit
2230dbf3
authored
Jun 25, 2021
by
yean
Browse files
Square and hover trajectory working, probably final change
parent
96a4f201
Changes
4
Hide whitespace changes
Inline
Side-by-side
Guidance/splineTogether.m
View file @
2230dbf3
...
...
@@ -43,8 +43,8 @@ function [WPs] = splineTogether(coarseWPs, dt)
end
%% 3) Combine Data into a single WPs variable
%
WPs = [x_all', y_all', z_all', vx_all', vy_all', vz_all'];
WPs
=
[
x_all
', y_all'
,
z_all
', zeros(size(x_all'
,
1
),
1
),
zeros
(
size
(
x_all
', 1), 1), zeros(size(x_all'
,
1
),
1
)];
WPs
=
[
x_all
', y_all'
,
z_all
', vx_all'
,
vy_all
', vz_all'
];
%
WPs = [x_all', y_all', z_all', zeros(size(x_all', 1), 1), zeros(size(x_all', 1), 1), zeros(size(x_all', 1), 1)];
end
Parameters/setUpParameters_OneQuad.m
View file @
2230dbf3
...
...
@@ -77,7 +77,7 @@ function [params] = setUpParameters_OneQuad(traj_num)
%% Offset in position
%params.multirotors{1}.x0(1:3) = params.multirotors{1}.x0(1:3) + [0.1;0.1;0.1];
%params.multirotors{1}.x0(1:3) = params.multirotors{1}.x0(1:3) + [0.1; 0.1; 0.1]; %10 cm offset
params
.
multirotors
{
1
}
.
x0
(
1
:
3
)
=
params
.
multirotors
{
1
}
.
x0
(
1
:
3
)
+
[
0.2
;
0.2
;
0.2
];
%20 cm offset
%
params.multirotors{1}.x0(1:3) = params.multirotors{1}.x0(1:3) + [0.2;0.2; 0.2]; %20 cm offset
%params.multirotors{1}.x0(1:3) = params.multirotors{1}.x0(1:3) + [0.22;0.22; 0.22]; %22 cm offset
%%Simulation starts breaking at an offset of 23 cm
...
...
SimulinkModelsAndSubsystems/quadrotor_tether_subsystem/singlequadrotor.slx
View file @
2230dbf3
No preview for this file type
singleVehicleSim.m
View file @
2230dbf3
...
...
@@ -8,7 +8,7 @@
addpath
(
genpath
(
pwd
));
%% Set up Parameters
traj_num
=
1
;
traj_num
=
2
;
params
=
setUpParameters_OneQuad
(
traj_num
);
params
.
num_vehicles
=
1
;
...
...
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