Torques and attitude sensing in earth satellites