Compensation

Implemented straight-line equation:

Y[Ω] = (X_Adc * G + B_h) * A_h + 100 Ω

Hence:

B_h consists of a component that depends on the gain of the A/D converter and a constant for calculating the axis offset of 100 Ω. The gain-dependent component calculates the offset of the external components (the offset of the component can be varied via adjustable amplification).
This procedure is necessary, because compensation at 0 Ω is technically not possible. The line is therefore compensated around the point 100 Ω (offset to the point and rotated around this point).

B_h: (B_off * G + B_100)