ThrustAngleExplicit:

--------------------------------------------------------------------------
   Explicit guidance for a 2D launch simulation.
   Computes the thrust angle based on the targeted position and velocity
   at burnout.

   Since version 2015.1
--------------------------------------------------------------------------
   Form:
   params = ThrustAngleExplicit( 'params' )
   angle = ThrustAngleExplicit( x, d, params )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x        (4+n,1)   State
   d           (.)    Data structure
     .rocket            Rocket model data structure
   params      (.)    Parameters
     .hT                Altitude target
     .rDotT             Velocity target
     .maxAngle          Maximum angle
     .endTime           End time (s)

   -------
   Outputs
   -------
   angle    (1,1)    Commanded thrust angle

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

Children:

LaunchVehicle: LVDatabase/RocketDatabase
LaunchVehicle: VehicleModels/SetPayloadMass