HUD:

Path: AC/ACGraphics

% Implements a "heads-up-display". 

   If c is entered it will animate the controls when the mode is 'run',
   otherwise it will output the control values in h when the mode
   is 'run'. Can have helicopter or fixed-wing type controls.

--------------------------------------------------------------------------
   Form:
   h = HUD( mode, g, x, h, c )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   mode        (1,:) 'run' or 'init'
   g                 .atmData        Atmospheric data
                     .atmUnits       Units
                     .type           'helicopter' or 'fixed wing'
   x                 State vector of type ACState or
                     x.v (3,1) velocity vector
                     x.h (1,1) altitude
                     x.e (3,1) Euler angles
   h           (:,:) Structure containing figure handles and control settings
                      .control
                       For a fixed wing this is
                       .rudder
                       .aileron
                       .elevator
                       .throttle
                       For a helicopter this is
                       .rudder
                       .lateralCyclic
                       .longitudinalCyclic
                       .collective
                       .throttle
   c           (:)   Initial control settings inputs and button definitions
                     For a fixed wing 
                     .control
                     .rudderMax             (1,1) Max rudder
                     .aileronMax            (1,1) Aileron max
                     .elevatorMax           (1,1) Elevator max
                     For a helicopter 
                     .control
                     .rudderMax             (1,1) Max rudder
                     .lateralCyclicMax      (1,1) Lateral Cyclic max
                     .longitudinalCyclicMax (1,1) Longitudinal Cyclic max
                     .collectiveMax         (1,1) Collective max
                   

   -------
   Outputs
   -------
   h           (:)    Figure handles and outputs
                      .control

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

Children:

AC: ACCoord/AlphBeta
AC: ACCoord/ECIToNED
AC: ACCoord/EulNED
AerospaceUtils: AeroData/AtmData
AerospaceUtils: AtmosphericCalculations/AirData
Common: Atmosphere/StdAtm
Common: CommonData/SwooshWatermark
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/QMult
Common: Quaternion/QPose
Common: Transform/Altitude
Common: Transform/Mat2Eul
Math: Linear/Mag

Back to the AC Module page