Flight code for the Alaska Reasearch CubeSat Attitude Control and Determination System