Load velocity and position control for digital elastic servomechanisms