Hi JoeJ,
Yes, correct, I have the positions figured out - simple cartesian-to-polar conversion - and I have it working perfectly. However, the orientation is a tough(er) nut to crack.
And yes - at the first glance, the conversion is a "simple" rotation of coordinate systems, by "unwinding" the global position, first by longitude angle around the pole axis, then by latitude angle around the 0th meridian plane (Greenwitch/date-meridian). This places the spacecraft to a position as if it was on the North Pole, which aligns with the newton coordinate system.
I tried that, but it is not quite that simple. There are problems with the way heading (yaw) is oriented, also, a limitation of the pitch which I specified before.
Yes - the instability you mention is called a "gimbal lock", a well known condition that exists in aerospace engineering. Quaternions are used, among other reasons, to avoid just such a condition, and that's why I chose Newton (which uses quaternions).