Function lupnt::GetBodyData(BodyId)¶
Defined in File body.cc
Function Documentation¶
-
BodyData lupnt::GetBodyData(BodyId id)¶
Look up physical and frame metadata (GM, radius, flattening, sidereal rate, fixed/inertial frames) for a solar-system body, in SI units.
Used throughout the simulator — e.g. by
Occultation::ComputeOccultationto get an occulting body’s radius/name, byGroundStationandJointOrbitClockDynamics::RelativisticRateto get the central body’s GM and frames, and by frame-conversion/plotting code — as the single source of truth for body constants instead of hardcoded globals.- Parameters:
id – Body identifier (e.g.
BodyId::EARTH,BodyId::MOON)- Returns:
BodyDatawith GM [m^3/s^2], R [m], flattening, omega [rad/s], and fixed/inertialFrames