Maneuver and control of flexible spacecraft