Practical Implementation of Attitude-Control Algorithms for an Underactuated Satellite