  The trend toward onboard autonomy and spacecraft minimization present
significant potential for advances in efficient Line of Sight management by
making optimal use of the limited torque resources available. At SENER
Aeroespacial, we are implementing AOCS algorithms capable of providing agility
in different observation scenarios in which the exploitation of the resources
is fundamental for the mission success. In this contribution, we present an
in-house optimization toolbox for onboard guidance, the SENER Optimization
Toolbox, and we propose its use for online attitude guidance of an agile
space-craft using Control Moment Gyroscopes. We propose different optimization
schemes based on Sequential Convex Programming aiming for reducing the
computational burden for real-time implementations. The results highlight the
potential for performance improvements when making use of embedded optimal
control for fast slew maneuvers: with proposed schemes, we find solutions that
implicitly manage singularities and are up to 12.2% faster than classical
bang-bang maneuvers while increasing the smoothness of the trajectories to
minimize the excitation of flexible modes.
