Feedforward of position and speed