ThrustControlConstantAngle:

--------------------------------------------------------------------------
   Thrust control function to apply thrust at a fixed angle above horizon. 
   For use with GuidedLaunch3D.

   Since version 1.0
--------------------------------------------------------------------------
   Form:
   [on,thrustDir] = ThrustControlConstantAngle( r, v, d, params )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r             (3,1)   ECI position (km)
   v             (3,1)   ECI velocity (km/s)
   d              (.)    Model data
           Rp            (1,1)   Planet radius (km)
   params         (.)    Parameters
           minAlt        (1,1)   Altitude above which to apply thrust (km)
           angle         (1,1)   Angle above local horizon to apply thrust (rad)

   -------
   Outputs
   -------
   on            (1,1)   Whether thrust is commanded on or not.
   thrustDir     (3,1)   ECI unit thrust direction 

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

Children:

AeroUtils: Coord/QLVLH
Common: Quaternion/QTForm
Math: Linear/Mag