Position reference acceleration ffw for torque compensation