Text this: Attitude determination and control of a CubeSat nanosatellite