Path: FormationFlying/Coord
% Computes the desired Hills-to-Body frame quaternion for a thruster firing.
If called with just the first 2 inputs, the quaternion is computed without
regard to the rotation about the thruster axis.
If called with all inputs, the quaternion is computed such that the star
tracker is pointed as far away as possible from the sun, earth and moon.
--------------------------------------------------------------------------
Form:
[qHB,okay] = AlignThruster( r, v, aH, bTh, bST, jD, sep, verify )
--------------------------------------------------------------------------
------
Inputs
------
aH (3,1) Unit Hills frame vector of applied acceleration
bTh (3,1) Unit body vector of Hall Effect Thruster nozzle
bST (3,1) Unit body vector of star tracker bore-sight
r (3,1) Position in ECI at burn time [km]
v (3,1) Velocity in ECI at burn time [km/s]
jD (1) Julian Date of burn time [JD]
sep (1) Required angular separation between bore-sight and
bright body horizon [rad]
-------
Outputs
-------
qHB (4,1) Desired ECI-to-body quaternion
okay (1) Boolean flag indicating whether angular separation
constraints were satisfield
--------------------------------------------------------------------------
AerospaceUtils: Coord/QHills Orbit: OrbitData/LEOData SC: Ephem/MoonV1 SC: Ephem/SunV1 Common: CommonData/SwooshWatermark Common: General/CellToMat Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle Common: Quaternion/AU2Q Common: Quaternion/AnimQ Common: Quaternion/Mat2Q Common: Quaternion/Q2Mat Common: Quaternion/QForm Common: Quaternion/QMult Common: Quaternion/QPose Common: Quaternion/QTForm Common: Quaternion/U2Q Common: Time/DTSToDTA Common: Time/Date2JD Common: Time/JD2000 Math: Geometry/Perpendicular Math: Linear/Cross Math: Linear/Dot Math: Linear/DupVect Math: Linear/Mag Math: Linear/Unit Math: Trigonometry/CosD Math: Trigonometry/SinD
Back to the FormationFlying Module page