I've been struggling with orbit calculations for Mars' moons and satellites. My Phobos and Deimos orbits look correct - orbital velocity and radius seem to be accurate. But satellites with pronounced eccentricity and/or inclination don't seem to work at all.
What I do during each frame is...