Android的加速度最大值 [英] Android accelerometer max values

查看:408
本文介绍了Android的加速度最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直在寻找大约3个小时,我还没有想出了一个很好的答案/解决方案。

So I have been searching for about 3 hours and I have not come up with a good answer/solution.

我的问题是:

为什么我收到的最大加速度值仅约34米/秒^ 2或约3.5 Gs的(34 / 9.81)。

难道是因为硬件限制或软件限制?如果是硬件的,我知道,我不能什么都不做这件事(或至少不容易)。如果是软件限制那我该怎么去除这个限制,有没有办法这样做的?就像一个API的东西?

Is it because hardware restrictions or software restrictions? If it is hardware I know I can't do nothing about it(or at least not easily). If it is software restriction then how can I remove that restriction, is there any way of doing that? Like an API or something?

我会AP preciate任何帮助, 谢谢你。

I would appreciate any help, Thanks.

注意的:我使用的是Galaxy S的,如果有差别。我也考虑一下这个问题,但是,这并不帮助我:<一href="http://stackoverflow.com/questions/4691097/what-is-android-accelerometer-min-and-max-range">What是Android的加速度计的最小和最大范围

Note: I am using a Galaxy S, if that makes a difference. I have also taking a look at this question but that does not helps me: What is android accelerometer min and max range

推荐答案

看看这个: <一href="http://electronics.stackexchange.com/questions/11372/samsung-galaxy-s-accelerometer-details">http://electronics.stackexchange.com/questions/11372/samsung-galaxy-s-accelerometer-details 现在的问题主要包括哪些似乎是数据表中的银河学中使用的加速​​度显然有三种可能的范围为+/- 2g,+/- 4g和+/-8克。我不是一个电子产品专家,所以将不提供任何更多的跨pretation比。

Take a look at this: http://electronics.stackexchange.com/questions/11372/samsung-galaxy-s-accelerometer-details The question includes what appears to be the datasheet for the accelerometer used in the Galaxy S. Apparently there are three possible ranges +/-2g, +/-4g, and +/-8g. I'm not an electronics expert so won't provide any more interpretation than that.

据developer.android.com,加速度计读数依赖于硬件只: developer.android.com/guide/topics/sensors/sensors_motion.html 因此,你可能有一个更好的机会在得到上面已经提到的电气工程stackexchange论坛的专家回答:electronics.stackexchange.com

According to developer.android.com, the accelerometer readings are hardware-dependent only: developer.android.com/guide/topics/sensors/sensors_motion.html Thus, you'd probably have a better shot at getting an expert answer on the Electrical Engineering stackexchange forum already referenced above: electronics.stackexchange.com.

祝你的项目!

编辑:在谈到对原来问题的意见: 我明白了,因为它说的页面您引用 -

In reference to comments on original question: I see, because it says on the page you reference -

我的理解是,默认为Android加速度计是   工作在+ -2G一个predefined范围。如何以编程方式   通过公共API改变这个范围是多少?有一个getMaximumRange()   的方法,但没有相应的setMaximumRange()方法。

"My understanding is that the default for Android accelerometers is to operate in a predefined range of +-2g. How can I programmatically change this range via a public API? There is a getMaximumRange() method, but no corresponding setMaximumRange() method."

您想知道是否有改变的pre-所选范围内的基于软件的方法。同样,我认为Android的API文档会提到这一点。尝试在electronics.stackexchange.com问什么是动态的可选范围是,如果他们是通过物理硬件开关(或类似的东西),或者设置它们可以通过编程来改变。

You are wondering if there is a software-based method for changing the pre-selected range. Again, I would think that Android API docs would mention that. Try asking on electronics.stackexchange.com what "dynamically selectable ranges" are and if they are set by physical hardware switches (or something like that) or if they can be changed programmatically.

第二个编辑:我读我提到你更彻底,并发现原来的提问检查了谷歌的API,并认为这是不可能通过它来改变范围的页面:

SECOND I read the page I referred you to more thoroughly, and notice that the original questioner checked the Google API and concluded that it is not possible to change the range through it:

API忽略了最低允许更改。我想,我能找到的API源此数据,但它不是简单的。现在,我会尽力。 - MarcoBiagi 03月13日'11在10:36

API dosen't allow to change them. I think that i can find this data in the api source, but it is not simple. Now i'll try. – MarcoBiagi Mar 13 '11 at 10:36

这篇关于Android的加速度最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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