Help with barometer

Hi I am new to PX4 and need help to locate the code for barometer reading and algorithm. I have built and test run my model plane. I need to understand the algorithm of calculating the altitude from barometer readings. Could someone point me to the relevant directories/files? Thanks.

The barometer altitude calculation is here.

That link seems to be dead now, but this is called the hypsometric equation.