Hi,
Am I correct that this is the height computation using barometer in the code?
Would you happen to know the origin of this code? I have tried searching and have encountered the Barometric Formula and Hypsometric Formula, but I am having difficulty matching it completely with the code.
Barometric Formula from https://www.omnicalculator.com/physics/air-pressure-at-altitude
Hypsometric Formula from https://www.mide.com/air-pressure-at-altitude-calculator