Code covered by the BSD License
Highlights from
Shark
-
J=rpy2J(rpy)
J=rpy2J(rpy); computes generalised Jacobian matrix which
-
R_eb=rpy2R_eb(rpy)
R_eb=rpy2R_eb(rpy), computes the rotation matrix of e-frame wrt b-frame,
-
[Cl,Cd,xcp]=a2clcdxc(alfa)
[Cl,Cd,xcp]=a2clcdxc(alfa) computes hydrodynamic coefficients Cl and Cd
-
[v1,v2,v3]=vehicle()
-
a2clcd(alfa)
[Cl, Cd] = a2clcd(alfa) computes hydrodynamic coefficients Cl and Cd
-
demos
DEMOS Demo list for Shark.
-
shark()
(the function shark adds the needed folders to the matlab path)
-
tc=tau_cor(veh,v,vr)
tc=tau_cor(veh,v,vr) calculates coriolis forces from
-
td=tau_damp(veh,vr,de)
td=tau_damp(veh,vr,de); calculates damping forces from
-
tr=tau_rest(veh,p)
tr=tau_rest(veh,p); calculates restoring forces from
-
xdot=vxdot(xu)
computes state derivatives as a function of state and input
-
z=vp(x,y)
-
contents.m
-
linattk.m
-
NLKSF
-
OPLOOP
-
xtrlmod
-
View all files
from
Shark
by Giampiero Campa
Nonlinear 6DOF Model of an Underwater Vehicle
|
| contents.m |
% Shark: An Underwater Vehicle Model
% Version 2.1 (R11.1,R12) 20-Dec-2001
%
% Complete Nonlinear 6DOF Model of an Underwater Vehicle
%
%
% PATH :
%
% add the shark folder to the matlab path, DO NOT
% add all the subfolders, add only the top folder.
%
%
% SIMULATIONS :
%
% shark;oploop : Open loop simulation.
% shark;nlksf : Simple linear attitude control.
%
% The command "shark" before the name of the simulink
% scheme is meant to automatically select and add the
% right subfolders to the path, and is needed only if
% the two simulations are called from the command line,
% (as opposed to opening the schemes from the Launch
% Pad or from the demo window).
%
% BEFORE RUNNING a simulation, double click on the
% "Load Data" block on the top left corner of the
% simulation scheme to load the required data.
%
%
% For additional HELP please read the file
% "shark.pdf" under the folder shark\doc
%
%
% Giampiero Campa
% WVU, MAE-CEMR,
% Morgantown WV 26506-6106 USA
%
|
|
Contact us at files@mathworks.com