CelestialInformation
manages the celestial bodies position and velocity on the inertial frame.- This class also manages the celestial body information like the gravity constant, the radius, and the rotation.
- The actual calculations are executed by CSPICE or
EarthRotation
, and this class just calls their functions.
src/environment/global/celestial_information.cpp, .hpp
CelestialInformation
class is defined.
src/environment/global/global_environment.cpp, .hpp
CelestialInformation
class is used here as a member variable ofGlobalEnvironment
class.
- Call
UpdateAllObjectsInformation
function to calculates the celestial bodies position and velocity. - Users can get calculated values by using the following functions:
GetPositionFromCenter_i_m
- You can select celestial ID or name for the arguments
GetVelocityFromCenter_i_m_s
- You can select celestial ID or name for the arguments
GetGravityConstant_m3_s2
- argument is celestial body name
GetCenterBodyGravityConstant_m3_s2
GetRadii_m
orGetRadiiFromName_m
- You can select celestial ID or name for the arguments
GetMeanRadiusFromName_m
- argument is celestial body name
- Actual calculation is executed by the CSPICE library. This function just calls the CSPICE functions.
- NA
- NA