A nested loop control combined with input-state feedback linearization robust to motor friction. Efficient control of a single link flexible arm under gravity. Control system designed for a single vibrational mode. The control system is still accurate when the link mass is significant respect the payload. The control system is robust to payload changes.