Something I didn't consider until now could be to use ADC_OffsetCenter function when Auto center is enable or not.
Basically input_set_abs_params() compute center by max-min.
The only down side is the dead zone, since ADC_OffsetCenter extrapolate the ADC values, the flat parameter may need to be re-think.
Just add a argument to avoid the centering stuff when not need, this could do the trick but directly into the driver.
I will make some test for this and make a pull request to your Git once done (not sure this will be done today).
Basically input_set_abs_params() compute center by max-min.
The only down side is the dead zone, since ADC_OffsetCenter extrapolate the ADC values, the flat parameter may need to be re-think.
Just add a argument to avoid the centering stuff when not need, this could do the trick but directly into the driver.
I will make some test for this and make a pull request to your Git once done (not sure this will be done today).

