Hey guys, how should i add a distance sensor to MWC AIOP?

Hello
Hey all, i've been working on MWC AIOP flight controller recently, since the function BARO is using the air pressure sensor, however the sensor is so inaccurate. fortunately i've found a SHARP IR distance sensor with an analog output, is it possible to attach it to the AIOP board and let BARO use my sensor?
thanks for the helps in any form
cheers
Eason

Yes you can. Can you post the function here?

Ufoguy:
Yes you can. Can you post the function here?

Hello
Thanks for replying me
I'm sorry but, which function? voltage and distance function for IR sensor? Here it is, hope my information helps:

distance = 65pow(voltage0.0048828125, -1.10);
Thank you
Yichen.li