Skip to content

Commit

Permalink
Initial commit R2024a
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed Aug 18, 2024
1 parent b159edc commit 19abd44
Show file tree
Hide file tree
Showing 588 changed files with 993 additions and 993 deletions.
Binary file modified Libraries/quadcopter_library.slx
Binary file not shown.
Binary file modified Models/quadcopter_package_delivery.slx
Binary file not shown.
Binary file modified Models/quadcopter_path_test_interp.slx
Binary file not shown.
90 changes: 45 additions & 45 deletions Overview/html/quadcopter_package_delivery.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
To make changes, update the MATLAB code and republish this document.
-->
<title>Quadcopter Package Delivery</title>
<meta name="generator" content="MATLAB 23.2">
<meta name="generator" content="MATLAB 24.1">
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
<meta name="DC.date" content="2023-09-14">
<meta name="DC.date" content="2024-03-21">
<meta name="DC.source" content="quadcopter_package_delivery.m">
<style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
Expand Down Expand Up @@ -130,60 +130,60 @@ <h2 id="3">Quadcopter Subsystem</h2>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_10.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_11.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_12.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_13.png" alt=""> <h2 id="10">Simulation Results from Simscape Logging: Path 4 with Wind</h2>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_14.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_15.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_16.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_17.png" alt=""> <h2 id="11">Parameter Sweep: Package Mass</h2>
<p>Using parallel computing we vary the mass of the package to see its effect on the quadcopter trajectory.</p>
<pre class="codeoutput">Elapsed Simulation Time Single Run: 21.911
[14-Sep-2023 23:42:15] Checking for availability of parallel pool...
<pre class="codeoutput">Elapsed Simulation Time Single Run: 18.0016
[21-Mar-2024 23:25:00] Checking for availability of parallel pool...
Starting parallel pool (parpool) using the 'Processes' profile ...
Connected to parallel pool with 6 workers.
[14-Sep-2023 23:42:40] Starting Simulink on parallel workers...
[14-Sep-2023 23:42:45] Configuring simulation cache folder on parallel workers...
[14-Sep-2023 23:42:46] Transferring base workspace variables used in the model to parallel workers...
[14-Sep-2023 23:42:47] Loading model on parallel workers...
[14-Sep-2023 23:43:06] Running simulations...
[14-Sep-2023 23:44:11] Completed 1 of 12 simulation runs
[14-Sep-2023 23:44:12] Completed 2 of 12 simulation runs
[14-Sep-2023 23:44:14] Completed 3 of 12 simulation runs
[14-Sep-2023 23:44:15] Completed 4 of 12 simulation runs
[14-Sep-2023 23:44:21] Completed 5 of 12 simulation runs
[14-Sep-2023 23:44:21] Completed 6 of 12 simulation runs
[14-Sep-2023 23:44:27] Completed 7 of 12 simulation runs
[14-Sep-2023 23:44:27] Completed 8 of 12 simulation runs
[14-Sep-2023 23:44:28] Completed 9 of 12 simulation runs
[14-Sep-2023 23:44:29] Completed 10 of 12 simulation runs
[14-Sep-2023 23:44:30] Completed 11 of 12 simulation runs
[14-Sep-2023 23:44:38] Completed 12 of 12 simulation runs
[14-Sep-2023 23:44:39] Cleaning up parallel workers...
Elapsed Sweep Time Total: 81.00
Elapsed Sweep Time/(Num Tests): 6.75
[21-Mar-2024 23:25:24] Starting Simulink on parallel workers...
[21-Mar-2024 23:25:29] Configuring simulation cache folder on parallel workers...
[21-Mar-2024 23:25:29] Transferring base workspace variables used in the model to parallel workers...
[21-Mar-2024 23:25:31] Loading model on parallel workers...
[21-Mar-2024 23:25:50] Running simulations...
[21-Mar-2024 23:26:47] Completed 1 of 12 simulation runs
[21-Mar-2024 23:26:50] Completed 2 of 12 simulation runs
[21-Mar-2024 23:26:51] Completed 3 of 12 simulation runs
[21-Mar-2024 23:26:51] Completed 4 of 12 simulation runs
[21-Mar-2024 23:26:54] Completed 5 of 12 simulation runs
[21-Mar-2024 23:26:59] Completed 6 of 12 simulation runs
[21-Mar-2024 23:27:02] Completed 7 of 12 simulation runs
[21-Mar-2024 23:27:04] Completed 8 of 12 simulation runs
[21-Mar-2024 23:27:05] Completed 9 of 12 simulation runs
[21-Mar-2024 23:27:06] Completed 10 of 12 simulation runs
[21-Mar-2024 23:27:06] Completed 11 of 12 simulation runs
[21-Mar-2024 23:27:12] Completed 12 of 12 simulation runs
[21-Mar-2024 23:27:12] Cleaning up parallel workers...
Elapsed Sweep Time Total: 75.00
Elapsed Sweep Time/(Num Tests): 6.25

Parallel pool using the 'Processes' profile is shutting down.
</pre>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_18.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_19.png" alt=""> <h2 id="12">Parameter Sweep: Trajectory Speed</h2>
<p>Using parallel computing we vary the target speed of the quadcopter and see if the quadcopter can follow the target path.</p>
<pre class="codeoutput">Elapsed Simulation Time Single Run: 42.1623
[14-Sep-2023 23:45:47] Checking for availability of parallel pool...
<pre class="codeoutput">Elapsed Simulation Time Single Run: 38.1292
[21-Mar-2024 23:28:15] Checking for availability of parallel pool...
Starting parallel pool (parpool) using the 'Processes' profile ...
Connected to parallel pool with 6 workers.
[14-Sep-2023 23:46:05] Starting Simulink on parallel workers...
[14-Sep-2023 23:46:10] Configuring simulation cache folder on parallel workers...
[14-Sep-2023 23:46:10] Transferring base workspace variables used in the model to parallel workers...
[14-Sep-2023 23:46:12] Loading model on parallel workers...
[14-Sep-2023 23:46:32] Running simulations...
[14-Sep-2023 23:47:42] Completed 1 of 8 simulation runs
[14-Sep-2023 23:47:44] Completed 2 of 8 simulation runs
[14-Sep-2023 23:47:47] Completed 3 of 8 simulation runs
[14-Sep-2023 23:47:52] Completed 4 of 8 simulation runs
[14-Sep-2023 23:47:52] Completed 5 of 8 simulation runs
[14-Sep-2023 23:47:57] Completed 6 of 8 simulation runs
[14-Sep-2023 23:47:57] Completed 7 of 8 simulation runs
[14-Sep-2023 23:47:59] Completed 8 of 8 simulation runs
[14-Sep-2023 23:47:59] Cleaning up parallel workers...
Elapsed Sweep Time Total: 87.00
Elapsed Sweep Time/(Num Tests): 10.88
[21-Mar-2024 23:28:33] Starting Simulink on parallel workers...
[21-Mar-2024 23:28:37] Configuring simulation cache folder on parallel workers...
[21-Mar-2024 23:28:38] Transferring base workspace variables used in the model to parallel workers...
[21-Mar-2024 23:28:40] Loading model on parallel workers...
[21-Mar-2024 23:29:01] Running simulations...
[21-Mar-2024 23:30:02] Completed 1 of 8 simulation runs
[21-Mar-2024 23:30:05] Completed 2 of 8 simulation runs
[21-Mar-2024 23:30:06] Completed 3 of 8 simulation runs
[21-Mar-2024 23:30:06] Completed 4 of 8 simulation runs
[21-Mar-2024 23:30:07] Completed 5 of 8 simulation runs
[21-Mar-2024 23:30:08] Completed 6 of 8 simulation runs
[21-Mar-2024 23:30:17] Completed 7 of 8 simulation runs
[21-Mar-2024 23:30:18] Completed 8 of 8 simulation runs
[21-Mar-2024 23:30:18] Cleaning up parallel workers...
Elapsed Sweep Time Total: 77.00
Elapsed Sweep Time/(Num Tests): 9.62
Parallel pool using the 'Processes' profile is shutting down.
</pre>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_20.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_21.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_22.png" alt=""> <h2 id="13">Simulation Results from Simscape Logging: Path 5, 6</h2>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_23.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_24.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_25.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_26.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_27.png" alt=""> <p class="footer">Copyright 2022-2023 The MathWorks, Inc.<br>
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023b</a>
<img vspace="5" hspace="5" src="quadcopter_package_delivery_23.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_24.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_25.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_26.png" alt=""> <img vspace="5" hspace="5" src="quadcopter_package_delivery_27.png" alt=""> <p class="footer">Copyright 2022-2024 The MathWorks, Inc.<br>
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024a</a>
<br>
</p>
</div>
Expand All @@ -198,7 +198,7 @@ <h2 id="3">Quadcopter Subsystem</h2>
% is released from the quadcopter when it reaches the final waypoint and
% the release criteria are met.
%
% Copyright 2022-2023 The MathWorks, Inc.
% Copyright 2022-2024 The MathWorks, Inc.
Expand Down
Binary file modified Overview/html/quadcopter_package_delivery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Overview/html/quadcopter_package_delivery_25.png
Binary file modified Overview/html/quadcopter_package_delivery_26.png
Binary file modified Overview/html/quadcopter_package_delivery_27.png
2 changes: 1 addition & 1 deletion Overview/quadcopter_package_delivery.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% is released from the quadcopter when it reaches the final waypoint and
% the release criteria are met.
%
% Copyright 2022-2023 The MathWorks, Inc.
% Copyright 2022-2024 The MathWorks, Inc.



Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_delivery_plot1pvo.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% This plot shows the position, velocity, and attitude of the quadcopter as
% it attempts to follow a trajectory
%
% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_quadcopter_package_delivery', 'var')
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_delivery_plot2xyz.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%
% This plot shows the 3D trajectory of the quadcopter.
%
% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_quadcopter_package_delivery', 'var')
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_delivery_plot3battery.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% This plot shows the position, velocity, and attitude of the quadcopter as
% it attempts to follow a trajectory
%
% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_quadcopter_package_delivery', 'var')
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_parameters.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Parameters for quadcopter_package_delivery
% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% Size of the ground
planex = 12.5; % m
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_plot_trajectory.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function quadcopter_package_plot_trajectory(waypoints, timespot_spl, spline_data
% plotted versus time. If there are no sequential, repeated waypoints,
% the trajectory is plotted versus distance along the trajectory

% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% Transpose if necessary
if(~(size(waypoints,2)==3))
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_select_trajectory.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
% defines the path of the quadcopter
% spline_yaw Yaw angle at the spline_data points

% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

if(nargin == 2)
roundtrip = varargin{1};
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_package_setsolver.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function solverBlock_pth = quadcopter_package_setsolver(mdl,deskreal)
% Copyright 2011-2023 The MathWorks, Inc.
% Copyright 2011-2024 The MathWorks, Inc.

desktop_solver = 'ode23t';

Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_waypoints_to_path_vis.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
% Create set of points to visualize linear path between waypoints
wayp_path_vis(1,:) = wayp_unique(1,:);

for i = 1:size(wayp_dist)
for i = 1:size(wayp_dist,1)
wayp_vis_x = linspace(wayp_unique(i,1),wayp_unique(i+1,1),floor(wayp_dist(i))*4);
wayp_vis_y = linspace(wayp_unique(i,2),wayp_unique(i+1,2),floor(wayp_dist(i))*4);
wayp_vis_z = linspace(wayp_unique(i,3),wayp_unique(i+1,3),floor(wayp_dist(i))*4);
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/quadcopter_waypoints_to_trajectory.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
% calculate the times the quadcopter will pass through the points along
% the spline.

% Copyright 2021-2023 The MathWorks, Inc.
% Copyright 2021-2024 The MathWorks, Inc.

% If no arguments are passed, plot the trajectory with some assumptions
% about the key parameters.
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/shutdown_quadcopter_drone.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Shutdown script for custom project
% Copyright 2019-2023 The MathWorks, Inc.
% Copyright 2019-2024 The MathWorks, Inc.

%% Code for cleaning Simscape custom library at shutdown
% Change to folder with package directory
Expand Down
2 changes: 1 addition & 1 deletion Scripts_Data/startup_quadcopter_drone.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Startup script for project Quadcopter_Drone.prj
% Copyright 2018-2023 The MathWorks, Inc.
% Copyright 2018-2024 The MathWorks, Inc.

%% Code for building Simscape custom library at startup
% Change to folder with package directory
Expand Down
2 changes: 1 addition & 1 deletion Workflows/IP_Protect/quadcopter_package_delivery_protect.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% Script to create protected model
% with Simscape runtime parameters.

% Copyright 2021-2023 The MathWorks(TM), Inc.
% Copyright 2021-2024 The MathWorks(TM), Inc.

% Move to folder where script is saved
cd(fileparts(which(mfilename)));
Expand Down
Loading

0 comments on commit 19abd44

Please sign in to comment.