Angle flight mode incorporates GPS, barometric and other sensors to maintain stable position in flight .
Every aircraft that takes off from an airport sets it’s altimeter to the elevation of the airport it’s taking off from , then some fairly complicated math , including barometric pressure...