Variable sampling rate as function of position error