Application of the PDD1/2 algorithm to position control of serial robots