Optimal Attitude Control Management For A Cubesat