Implemented equalization for ir distance.