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.

--------------------------------------------------------------------------
   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:

AC: ACData/ACTConstants
AerospaceUtils: Coord/ECIToEF
AerospaceUtils: Coord/LatLonToR
SC: Ephem/EOfE
SC: Ephem/EarthNut
SC: Ephem/EarthPre
SC: Ephem/EarthRot
SC: Ephem/GMSTime
SC: Ephem/MSidDay
SC: Ephem/NutDelta
SC: Ephem/ObOfE
SC: Ephem/TruEarth
SC: SCData/sCTConstants
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/Axis3D
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/QTForm
Common: Quaternion/U2Q
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Common: Time/JD2T
Common: Time/JDToMidnight
Common: Time/T2JD
Math: Geometry/Perpendicular
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Unit
Math: MathUtils/R2P5
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the AerospaceUtils Module page