Linear pot is not quite linear

You could linearize it in software. Do some manual calibration to see what you get at each point and build an array to contain the mapping data.