Inertial frame to custom local orbital frame transformation matrix
[M] = CL_fr_locOrbMat(pos_car,vel_car,frame_name)
Computes the frame transformation matrix M from the inertial reference frame to a custom 'qsw' or 'tnw' local orbital frame.
The inertial frame is implicitly the frame relative to which the satellite's position and velocity are defined. The local frame is built using these position and velocity vectors.
frame_name is the name of the local frame. The name is a 3-letter word with letters among the following: 'q', 's', 'w', 't', 'n', lower case or upper case. If 'a' (lower case!) is the name of some axis, 'A' (upper case!) is the name of the same axis in the opposite direction.
Example: "qWS" means: x-axis = q, y-axis = -w, z-axis = -s
The reference frame that results should be direct.
Notes:
By convention, M multiplied by coordinates relative to the inertial frame yields coordinates relative to the local frame.
See Local Frames for more details on the definition of local frames.
satellite's position vector relative to the inertial frame [m] (3xN)
satellite's velocity vector relative to the inertial frame [m/s] (3xN)
(string) name of local frame
inertial to local orbital frame transformation matrix (3x3xN)
CNES - DCT/SB