Attitude Control of Flexible Spacecraft by Quaternion Feedback