Orbiter uses Rotation matrix
void CelestialBody::GetRotation (double t, Matrix &rot)
BTW, some years ago I made a Python script that compares SPICE rotation and Orbiter rotation and optimizes the parameters (LAN/Obliquity/SidRotOffset/SidRotPeriod) to fit better over a given time interval. It...
The one important thing that is missing now is celestial body orientation. SPICE can handle this very easily.
I think the simplest way is to add something like this to Celbody.cpp, in CelestialBody::GetRotation(..):
if (module && module->bRotation())
return module->clbkRotation(mjd, rot)...
Finally, I’ve fixed this in https://github.com/Ajaja/spice_orbiter
There is now no need to duplicate kernel loading in each *.cfg file.
I’ve also updated orbiter.bsp for the latest SPK versions and added a GitHub Actions script to build spice.dll.
~1380 m/s:
Updated from Horizons System trajectory:
BEGIN_URLDESC
CurrentState
END_URLDESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 61136.458333
END_ENVIRONMENT
BEGIN_FOCUS
Ship Artemis II
END_FOCUS
BEGIN_SHIPS
Artemis II:DeltaGlider
STATUS Orbiting Earth
RPOS -1.234639192836895E+08...
Excellent comparison! How did you do this in SpaceEngine? I wasn't able to find a way to set precise spaceship coordinates and velocity vectors for a given moment.
Current trajectory according to the JPL Horizons System:
BEGIN_URLDESC
CurrentState
END_URLDESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 61133.354167
END_ENVIRONMENT
BEGIN_FOCUS
Ship Artemis II
END_FOCUS
BEGIN_SHIPS
Artemis II:DeltaGlider
STATUS Orbiting Earth
RPOS...
Strictly speaking, the orbiter.bsp in the body configuration files are not necessary. The SPICE library needs to load each kernel file only once. I had previously used multiple kernel files for different bodies before merging them into a single orbiter.bsp file. Repeating this orbiter.bsp entry...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.