Android: How to use SensorManager.getAltitude(float p0, float p)?

前端 未结 2 1420
悲哀的现实
悲哀的现实 2020-12-17 05:30

I found an alternative way to obtain altitude by using SensorManager but it requires two paramaters.

public static float  getAltitude  (float p0, float p)

C         


        
2条回答
  •  既然无缘
    2020-12-17 06:07

    The current barometric air pressure at sea level (QNH) is the value after the "Q" in the metar field (in hPa - hecto-Pascals). In this case 1000 hPa.

    More info on TAF and METAR can be found on wikipedia.

    http://en.wikipedia.org/wiki/METAR

    http://en.wikipedia.org/wiki/Terminal_aerodrome_forecast

提交回复
热议问题