Text this: Integrated attitude determination and control system via magnetic measurements and actuation