SunVectorPointing:

Path: SCPro/ProAttitude

% Compute the angles to align the solar wing normal with the sun
 The solar wing is assumed to be along the y-axis and the thrust vector
 along the x-axis. We roll (about) x and rotate the normal until it is
 aligned with the sun. The zero solar array angle is with the solar
 array normal aligned with +x.

 Type SunVectorPointing for a demo

--------------------------------------------------------------------------
   Form:
    [qECIToBodyTarget, sAAngle] = SunVectorPointing( uECI, uSunECI )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   uECI              (3,1) Desired pointing vector
   uSunECI           (3,:) Sun vector in the ECI frame

   -------
   Outputs
   -------
   qECIToBodyTarget	(4,:) Angle about unit vector (rad)
   sAAngle           (1,:) Angle about wing normal vector (rad)

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

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Mat
Common: Quaternion/QForm
Common: Quaternion/QTForm
Common: Quaternion/U2Q
Math: Geometry/Perpendicular
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Unit

Back to the SCPro Module page