Two ways - one goal: Precise displacement measurement in the field of hydraulics