Text this: Optimal Trajectory Synthesis and Tracking Control for Spacecraft Large Attitude Manoeuvers