An implementation of PID control for utilization with micro-satellites. Input includes 1 sun sensor, 2 star sensor, and 1 onboard magnetometer. Output is comprised of a complete 3-axis magnetorquer system.