Path: SC/Sensor
% Simulates a single axis suns sensor Since version 1. -------------------------------------------------------------------------- Form: [cEP, dTCEP, uSunBodyOld, angleSSA] = SSA( qECIToBody, uSunECI, uSunBodyOld, dT ) [cEP, dTCEP, uSunBodyOld, angleSSA] = SSA( qECIToBody, uSunECI, uSunBodyOld, dT, boresight, aperture, aperXBore, cosFOV, angleSSAOld ) -------------------------------------------------------------------------- ------ Inputs ------ qECIToBody (4,1) Quaternion from the inertial to the body frame uSunECI (3,1) Sun unit vector in the ECI frame uSunBodyOld (3,1) Last value of the sun in the body frame dT Time step boresight (3,1) Sensor boresight axis aperture (3,1) Sensor aperture axis aperXBore (3,1) Aperture X boresight cosFOV (1,1) Cosine of the field of view angle angleSSAOld (1,1) Last sun sensor angle ------- Outputs ------- cEP (1,1) 1 if sun just passed through the sensor boresight/ spin-axis plane dTCEP (1,1) Time since the CEP uSunBodyOld (3,1) Last value of the sun in the body frame angleSSA (1,1) Angle between the boresight axis and the sun vector --------------------------------------------------------------------------
Common: Quaternion/QForm
Back to the SC Module page