Altitude Sensor

When I retrieve the altitude position from the telemetry class, does it retrieve the barometric measurement or the GPS measurement?