experience and innovation

Now Hiring!

--------------------------------------------------------------------------
   Find initial velocity and flight path angle that gives desired distance

   Given initial and final altitudes, the desired time of flight, and the
   desired angular distance to fly around the globe, this routine conducts
   an iterative search for the initial flight path angle using the Lambert
   method.
--------------------------------------------------------------------------
   Form:
   [gamma,V,tF] = MissileLambert( tFDes, h0, hF, angleDist, tol, maxIter );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   tFDes           (1,1) Desired time of flight (sec)
   h0              (1,1) Initial altitude (km)
   hF              (1,1) Final altitude (km)
   angleDist       (1,1) Angular distance of flight around Earth (rad)
   tol             (1,1) Tolerance for converging to tFDes 
                             (optional, default is 1e-3 sec)
   maxIter         (1,1) Maximum number of iterations 
                             (optional, default is 100)

   -------
   Outputs
   -------
   gamma           (1,1) Initial flight path angle (rad)
   V               (1,1) Initial velocity required (km/s)
   tF              (1,1) Flight Time (sec)

   See also MissileDistance, MissileVelocity
--------------------------------------------------------------------------
   References:   Zarchan, P. (2002) Tactical and Strategic Missile
                    Guidance, 4th Edition, pp. 239-244.
--------------------------------------------------------------------------