Android:如何获得准确的高度? [英] Android: How to get accurate altitude?

查看:16
本文介绍了Android:如何获得准确的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要仅使用 GPS 获得准确的高度测量.

I need to get an accurate measurement of altitude using GPS only.

我尝试了 Location.getAltitude(),但这非常不准确.有什么建议吗?

I tried Location.getAltitude(), but that is terribly inaccurate. Any advice?

推荐答案

使用智能手机/平板GPS的海拔有两个问题:

There are two issues with using altitude of a smartphone / tablet GPS:

  1. 高度是 WGS84 参考椭球体上方的高度.它不是高于地面或海平面的高度.这里有更多细节:http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=10915.这个错误可以纠正;以下是如何手动操作的说明:http://www.unavco.org/edu_outreach/tutorial/geoidcorr.html.网络文章链接到计算器以获取大地水准面高度以进行校正;我不知道是否还有可用于此计算的 Web 服务.
  2. 对于相对便宜的 GPS 接收器,GPS 高度非常不准确.这是一篇关于此的文章:http://gpsinformation.net/main/altitude.htm.处理这种不准确性的一种方法是过滤海拔数据.我使用圆形数组数据结构来记住最后几个(我使用了 4 个)高度读数并计算平均值.这足以让我的应用程序获得相对准确的垂直速度读数.
  1. The altitude is the altitude above the WGS84 reference ellipsoid. It is not the altitude above ground level or sea level. Here is more detail on that: http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=10915. This error can be corrected; here is a description how to do that by hand: http://www.unavco.org/edu_outreach/tutorial/geoidcorr.html. The web article links to a calculator to get the Geoid height for correction; I do not know if there is also a web service available for this computation.
  2. The GPS altitude is terribly inaccurate for relatively cheap GPS receivers. Here is an article on that: http://gpsinformation.net/main/altitude.htm. One method to cope with this kind of inaccuracy is to filter the altitude data. I used a circular array data structure to remember the last few (I used 4) altitude readings and compute the average. This sufficed to get a relatively accurate reading of vertical speed for my application.

这篇关于Android:如何获得准确的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆