Method for Measuring Height on Plane and Device
DRIVE
October 27, 2022
A method for measuring a height on a plane, implemented by an electronic device, includes displaying an altitude obtained in a first detection manner, and displaying an altitude obtained in a second detection manner when a first switching condition is met. In this way, the electronic device displays an altitude detected based on a barometric pressure sensor. When a barometric pressure value of an environment in which the electronic device is located is inconsistent with an atmospheric pressure value, the data of the barometric pressure sensor is invalid. The electronic device displays an altitude obtained in another detection manner. In this way, the electronic device can display an accurate altitude in a case in which a user takes a plane.
Discussion in the ATmosphere