n72.75
Seize the means of computation
Orbiter Contributor
Addon Developer
Tutorial Publisher
Donator
- Joined
- Mar 21, 2008
- Messages
- 2,872
- Reaction score
- 1,714
- Points
- 128
- Location
- Saco, ME
- Website
- mwhume.space
- Preferred Pronouns
- he/him
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);
...
Then it will be possible to implement this rotation in spice.dll.
It will also be possible to implement any custom rotation for any Celbody using external modules.
What is the best format to represent rotation in, as far as something that would get passed to the new clbkRotation function.
I'm very on the fence, Quaternion vs Rotation matrix. I guess I could make overloads for both, but if cspice has a "preferred" or "native" format that we have to do less translations on, I'd prefer to use that.
Apologies for replying for replying to the same thread 3 times in a row...don't ban me.