Dynamics and 3-axes control of a spacecraft with flexible structures