CL_fr_qswMat — Local orbital frame (q,s,w) definition in an inertial frame
[M] = CL_fr_qswMat(pos_car,vel_car)
origin: center of gravity of the satellite
q: a unit vector from the planet center towards the satellite
w: a unit vector in the direction of the osculating orbit's kinetic moment
s: a unit vector chosen so that qsw is a direct orthonormal frame
To convert a vector pos_qsw to pos_car, you can use the (hyper)matrix M' : pos_car = M'*pos_qsw
For big hypermatrixes, it is faster to use the functions CL_fr_qsw2inertial and CL_fr_inertial2qsw
satellite's cartesien position in a geocentric inertiel frame [m] (3xN)
satellite's cartesien velocity in a geocentric inertiel frame [m/s] (3xN)
frame transfer matrix from an inertial frame to the QSW local frame (3x3xN)
1 Mecanique spatiale, CNES - Cepadues 1995, Tome I, section 10.2.2.3 (Definition du Repere orbital local)
2 CNES - MSLIB FORTRAN 90, Volume O (Les Reperes orbitaux locaux)