Torque control using hardware designed for position control