Nonlinear attitude maneuvering of a flexible spacecraft for space debris tracking and collision avoidance