PI precompensation for position loop