QToPFTarget:

Path: AerospaceUtils/Coord

% Generate a quaternion to go to a planet fixed lat/long target.
 Computes an array of quaternions that align a vector x in the body fixed
 frame with a target specified by lat and lon.

 Type QToPFTarget for a demo.

 Since version 2.
--------------------------------------------------------------------------
   Form:
   [qECIToBody, err] = QToPFTarget( x, lat, lon, rECI, jD, planet, type )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x	       (3,1)        Vector in the body frame
   lat        (:) or (1,1) Latitude (rad)
   lon        (:) or (1,1) Longitude (rad)
   rECI       (3,:)        Spacecraft Position
   jD         (:)          Julian dates
   planet     (1,:)        Planet name
   type       (1,:)        'geocentric' or 'geodetic' latitude

   -------
   Outputs
   -------
   qECIToBody (4,:)       Array of quaternions that rotate from the ECI
                          frame
   err        (1,1)       Norm of the errors (rad)

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

Children:

AerospaceUtils: Coord/ECIToEF
AerospaceUtils: Coord/LatLonToR
Common: Database/Constant
Common: Graphics/Plot2D
Common: Quaternion/QTForm
Common: Quaternion/U2Q
Common: Time/JD2000
Common: Time/JD2T
Math: Linear/DupVect
Math: Linear/Unit
OrbitMiniToolbox: Support/TruEarth

Back to the AerospaceUtils Module page