<i id='uyTIG'><tr id='uyTIG'><dt id='uyTIG'><q id='uyTIG'><span id='uyTIG'><b id='uyTIG'><form id='uyTIG'><ins id='uyTIG'></ins><ul id='uyTIG'></ul><sub id='uyTIG'></sub></form><legend id='uyTIG'></legend><bdo id='uyTIG'><pre id='uyTIG'><center id='uyTIG'></center></pre></bdo></b><th id='uyTIG'></th></span></q></dt></tr></i><div id='uyTIG'><tfoot id='uyTIG'></tfoot><dl id='uyTIG'><fieldset id='uyTIG'></fieldset></dl></div>

<small id='uyTIG'></small><noframes id='uyTIG'>

  • <tfoot id='uyTIG'></tfoot>

        <bdo id='uyTIG'></bdo><ul id='uyTIG'></ul>
    1. <legend id='uyTIG'><style id='uyTIG'><dir id='uyTIG'><q id='uyTIG'></q></dir></style></legend>

        如何在Android中获得气压高度?

        时间:2023-05-27

        • <i id='dPSEi'><tr id='dPSEi'><dt id='dPSEi'><q id='dPSEi'><span id='dPSEi'><b id='dPSEi'><form id='dPSEi'><ins id='dPSEi'></ins><ul id='dPSEi'></ul><sub id='dPSEi'></sub></form><legend id='dPSEi'></legend><bdo id='dPSEi'><pre id='dPSEi'><center id='dPSEi'></center></pre></bdo></b><th id='dPSEi'></th></span></q></dt></tr></i><div id='dPSEi'><tfoot id='dPSEi'></tfoot><dl id='dPSEi'><fieldset id='dPSEi'></fieldset></dl></div>
              <tbody id='dPSEi'></tbody>
              <legend id='dPSEi'><style id='dPSEi'><dir id='dPSEi'><q id='dPSEi'></q></dir></style></legend>
                <bdo id='dPSEi'></bdo><ul id='dPSEi'></ul>
              • <tfoot id='dPSEi'></tfoot>

                  <small id='dPSEi'></small><noframes id='dPSEi'>

                  本文介绍了如何在Android中获得气压高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  计算气压高度需要哪些数据?我如何得到它们然后计算高度?

                  What are the data needed for calculating barometric altitude? How do I get them and then calculate the altitude?

                  与 GPS 高度相比,气压的准确度如何?我尝试了 GPS,但在网上搜索了几个小时后,我找不到合适的大地水准面库.

                  Also how accurate is the barometric compared to GPS altitude? I tried GPS but after searching hours in the web I cannot find a suitable Geoid library.

                  如果我有任何概念,请纠正我.

                  Please correct me if I got any concept long.

                  推荐答案

                  你需要使用压力传感器 测量压力然后使用 SensorManager.getAltitude(float, float) 调用以将测量压力与参考海平面压力一起转换以获得高度.

                  You need to use the pressure sensor to measure the pressure then use the SensorManager.getAltitude(float, float) call to convert the measures pressure along with a reference sea level pressure to get the altitude.

                  棘手的一点是使用什么作为参考压力.这会随着天气的变化而变化,并且会随着时间的推移而漂移.通常,您会进行某种校准以设置此值并可能对其进行更新.这取决于您的用例,什么是正确的解决方案.

                  The tricky bit is what to use as the reference pressure. This will change with the weather and will drift over time. Typically you would do some sort of calibration to set this values and possibly update it. It depends on your use case what the right solution is.

                  如果正确校准的基于压力的高度比基于 gps 的高度要准确得多,尤其是如果您希望对高度差异而不是绝对高度感兴趣.通过对原始压力传感器值进行一些过滤,您可以轻松地检测到您将手机保持在面部水平或头顶手臂长度,这是您想要使用 gps 执行的操作.

                  If properly calibrated pressure based altitude is considerably more accurate then gps based altitude especially if want you are interested in is altitude differences rather than absolute altitudes. With a bit of filtering on the raw pressure sensor values you can easily detect holding the phone at face level or arms length above your head which you want do with gps.

                  这篇关于如何在Android中获得气压高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将网络位置保存为 .txt 文件(不使用 GPS) 下一篇:地理位置 API 和在半径内查找用户

                  相关文章

                  <legend id='1nvWg'><style id='1nvWg'><dir id='1nvWg'><q id='1nvWg'></q></dir></style></legend>

                  <small id='1nvWg'></small><noframes id='1nvWg'>

                    <bdo id='1nvWg'></bdo><ul id='1nvWg'></ul>

                  <tfoot id='1nvWg'></tfoot>

                  <i id='1nvWg'><tr id='1nvWg'><dt id='1nvWg'><q id='1nvWg'><span id='1nvWg'><b id='1nvWg'><form id='1nvWg'><ins id='1nvWg'></ins><ul id='1nvWg'></ul><sub id='1nvWg'></sub></form><legend id='1nvWg'></legend><bdo id='1nvWg'><pre id='1nvWg'><center id='1nvWg'></center></pre></bdo></b><th id='1nvWg'></th></span></q></dt></tr></i><div id='1nvWg'><tfoot id='1nvWg'></tfoot><dl id='1nvWg'><fieldset id='1nvWg'></fieldset></dl></div>