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. https://github.com/PX4/Firmware/blob/master/src/drivers/ms5611/ms5611.cpp#L868

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