Path: Orbit/OrbitMechanics
% Position and velocity relative to the target Also returns latitude, longitude and altitude. -------------------------------------------------------------------------- Form: d = LunarRelativeState(x,jD,rTarget) -------------------------------------------------------------------------- ------- Inputs ------- x (20,1) State vector [r;v;..] (km,km/s) jD (1,1) Julian date rTarget (3,1) Target position in the lunar frame (km) ------- Outputs ------- d (.) Data structure for the output .lat (1,1) Latitude (deg) .lon (1,1) Longitude (deg) .alt (1,1) Altitude (km) .r (3,1) Relative position (km) .v (3,1) Relative velocity (km/s) --------------------------------------------------------------------------
AerospaceUtils: Coord/EFToLatLonAlt SC: Ephem/MoonRot Math: Linear/Cross
Back to the Orbit Module page