orbit: introduce maximum values for theta angle to avoid flipping over at poles.