FGravityTurn:

--------------------------------------------------------------------------
 Cost function for gravity turn to zero flight path angle.
 Returns the final flight path angle. Does not consider the altitude or
 velocity magnitude.

 Since version 2015.1
--------------------------------------------------------------------------
   Form:
   cost = FGravityTurn( angle, d, tPitch )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   angle       (1,1)  Pitchover angle
   d            (.)   Simulation data
                       .rocket   (.)   Rocket model
   tPitch      (1,1)  Time for pitchover event

   -------
   Outputs
   -------
   cost        (1,1)  Final flight path angle

--------------------------------------------------------------------------
 See also GravityTurnSim2D, RHSLaunchVehicle2D.
--------------------------------------------------------------------------

Children:

LaunchVehicle: LaunchSim/GravityTurnSim2D