forked from cybergalactic/MSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contents.m
executable file
·108 lines (108 loc) · 5.4 KB
/
Contents.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
% Marine Systems Simulator (MSS):
%
% Ref.: T. I. Fossen (2011). Handbook of Marine Craft Hydrodynamics and
% Motion Control. John Wiley & Sons Ltd.
%
% Book examples: >> help mss_examples
%
% -------------------------------------------------------------------------
%
% GNCDemo - Demonstration menu for:
% 1) KinDemo - Euler angle and quaternion kinematics.
% 2) ManDemo - Maneuvering trials.
% 3) StabDemo - Straight-line, directional and positional motion stability
% 4) WaveDemo - Wave spectra demonstrations
%
% Conversions:
% conversion - defines the conversion factors R2D, D2R, MS2KNOTS, KNOTS2MS
% ssa(angle,'deg') - maps an angle in deg to the interval (-180, 180]
% ssa(angle,'rad') - maps an angle in rad to the interval (-pi pi]
%
% Control allocation and propeller models:
% ucalloc - Unconstrained control allocation for tau = T*K*u (T=K=constant)
% wageningen - Thrust and torque models for Wageningen B-series propellers
%
% Control:
% lqtracker - Computes the LQ tracker gain matrices for LTI systems
%
% Path generation:
% order3 - Path generation using cubic (3rd-order) polynominals
% order5 - Path generation using 5th order polynominals
%
% Ships models:
% mariner - Mariner class vessel, L=160 m (nonlinear maneuvering model)
% tanker - Esso Osaka tanker, L=304 m (nonlinear course unstable maneuvering model)
% container - Container ship, L=175 m (nonlinear maneuvering model including the roll mode)
% Lcontainer - Container ship, L=175 m (LINEAR maneuvering model including the roll mode)
% navalvessel - Multipurpose naval vessel, L = 51.5 m (nonlinear manneuvering model)
% supply - Supply vessel, L = 76.2 m (linear low-speed DP model)
%
% Underwater vehicle models:
% DSRV - Deep submergence rescue vehicle (DSRV), L = 5.0 m
% npsauv - Naval Postgraduate School autnomous underwater vehicle (AUV), L = 5.3 m
%
% Semi-submersible models:
% rig - Semisub MDG (mass-damper-spring) model, L = 84.6 m
%
% Time-series simulations:
% SIMmariner.m - Simulate mariner.m under PD control
% SIMcontainer.m - SImulate container.m and Lcontainer.m under PD control
%
% Wave response:
% waveresponse345 - heave, roll and pitch respnoses of ships in regular waves
%
% Maneuvering trials/Bode plots:
% nomoto - Bode plots of Nomoto's 1st- and 2nd-order models
% TurnCircle - performs a turning circle for a given ship model
% ZigZag - performs a zig-zag maneuver for a given ship model
% Pullout - performs a pullout maneuver for a given ship model
%
% Model transformations and conversion factors:
% conversion - loads a set of useful conversion factors to workspace, D2R, R2D, MS2KNOTS etc.
% Hmtrx - system transformation matrix
% Gmtrx - Gravitational-buoyancy matrix (floating vessels)
% gvect - Gravitational-buoyancy vector (submerged vehicles)
% m2c - System inertia to Coriolis-centripetal transformation matrix
%
% Kinematics:
% eulerang - Euler angle transformation matrices J, J1 and J2
% ecef2llh - ECEF xyz-coordinates to longitude-lattitude-height
% euler2q - Euler angles (roll-pitch-yaw) to quaternions
% flat2llh - Flat Earth (NED) to longitude-lattitude-height
% quest - QUEST algorithm for attitude determination
% quest6DOF - 6-DOF position/attitude vector from 3 position measurements
% llh2ecef - longitude-lattitude-height to ECEF xyz-coordinates
% llh2flat - Longitude-lattitude-height to flat Earth (NED)
% quatern - Quaternion transformation matrices J, J1 and J2
% euler2q - Computes the Euler angles from the unit quaternions.
% rad2pipi - Converts an angle in rad to the interval [-pi pi)
% rbody - Computes MRB and CRB(nu) for a rigid body
% Rll - Euler angle rotation matrix (longitude-lattitude)
% Rquat - Quaternion rotation matrix
% Rzyx - Euler angle rotation matrix (roll-pitch-yaw)
% Smtrx - skew-symmetric matrix for vector cross products: a x b = S(a)b
% Tquat - Quaternion transformation matrix for attitude
% Tzyx - Euler angle transformation matrix for attitude (roll-pitch-yaw)
% q2euler - Quaternions to Euler angles (roll-pitch-yaw)
% R2euler - Rotation matrix to Euler angles (roll-pitch-yaw)
% vex - Inverse vex(S(a))=a for the skew-symmetric matrix S(a)
% quatprod - Quaternion product
%
% Wave Spectra, encounter frequency and motion sickness incidence (MSI):
% encounter - Computes the encounter frequency
% ww2we - Computes the encounter frequency (vector; no abs value)
% HMmsi - Motion Sickness Incidence using the criterion of O'Hanlon and McCauley
% ISOmsi - Motion Sickness Incidence using the ISO 2631-1 criterion
% wavespec - Different wave spectra can be evaualted
% rand_phases - Generate vector of random phases
% hs2vw - Convert from Hs to wind speed
% vw2hs - Convert from wind speed to Hs
%
% Wind forces and moments:
% windcoef - Wind forces and moments using the data of Isherwood (1972)
%
% Numerical integration:
% euler2 - 2nd-order Euler integration, fixed step
% rk4 - 4th-order Runge Kutta method, fixed step
%
% See the help of each individual function for further information