Text this: A multi-mode attitude determination and control system for small satellites