FTrim:

Path: AC/ACDynamics

% Cost function for the trimming algorithm
--------------------------------------------------------------------------
   Form:
   j = FTrim( v, x, d, g, w, nR )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   v                   Adjustable variables
   x             (:)   Aircraft state
                             r          (3,1) ECI position vector
                             q          (4,1) Quaternion from ECI to body
                             w          (3,1) Inertial body rate in body frame
                             v          (3,1) Velocity of cm wrt air
   d             (:)    Aircraft data structure
   g             (:)    Constraint structure
                          .vT    (1,1) Velocity             (required)
                          .rDot  (1,1) Climb rate           (optional)
                          .eDot  (3,1) Euler angle rate     (optional)
   w             (11,1)  Weights [vDot, wDot, rDot, eDot, engDot]
   nR             (1)   Number of rotors

   -------
   Outputs
   -------
   j                    Scalar cost

--------------------------------------------------------------------------

Children:

AC: ACCoord/AlphBeta
AC: ACCoord/ECIToNED
AC: ACCoord/EulRate
AC: ACDynamics/AC
AC: Classes/@acstate/abs.m
AC: Classes/@acstate/acstate.m
AC: Classes/@acstate/get.m
AC: Classes/@acstate/length.m
AC: Classes/@acstate/minus.m
AC: Classes/@acstate/mrdivide.m
AC: Classes/@acstate/mtimes.m
AC: Classes/@acstate/plus.m
AC: Classes/@acstate/subsasgn.m
AC: Classes/@acstate/subsref.m
AC: Classes/@acstate/zeros.m
AerospaceUtils: AeroData/AtmData
AerospaceUtils: AtmosphericCalculations/AirData
AerospaceUtils: Coord/QIToBDot
Common: Atmosphere/StdAtm
Common: Classes/@statespace/and.m
Common: Classes/@statespace/close.m
Common: Classes/@statespace/connect.m
Common: Classes/@statespace/eig.m
Common: Classes/@statespace/get.m
Common: Classes/@statespace/getabcd.m
Common: Classes/@statespace/getsub.m
Common: Classes/@statespace/isempty.m
Common: Classes/@statespace/mtimes.m
Common: Classes/@statespace/plus.m
Common: Classes/@statespace/series.m
Common: Classes/@statespace/set.m
Common: Classes/@statespace/statespace.m
Common: CommonData/SwooshWatermark
Common: Control/Append
Common: Control/C2DZOH
Common: Control/Parallel
Common: Control/Series
Common: Control/SizeABCD
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Eul
Common: Quaternion/Q2Mat
Common: Quaternion/QForm
Common: Quaternion/QMult
Common: Quaternion/QPose
Common: Quaternion/QTForm
Common: Quaternion/QUnit
Common: Transform/Altitude
Common: Transform/Eul2Q
Common: Transform/Mat2Eul
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/SkewSymm

Back to the AC Module page