New attitude control algorithms with applications to space telescopes