Path: SC/Attitude
% 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) --------------------------------------------------------------------------
Common: Graphics/Plot2D Common: Quaternion/Mat2Q Common: Quaternion/Q2Mat Common: Quaternion/QForm Common: Quaternion/U2Q Math: Linear/Dot Math: Linear/Unit
Back to the SC Module page