I'm working on a Drone project with a Raspberry Pi connected with the Pixhawk4 via MAVLink protocol.
I'm trying to understand how the following method is measuring the altitude of the drone:
my_drone.location.global_relative_frame.alt
Maybe it is using the barometer, but is there a way to change the measure way to the GPS?
Here is the documentation, but I didn't find anything.