gpt4 book ai didi

iphone - iPhone 上的加速器范围是多少?

转载 作者:行者123 更新时间:2023-12-03 18:54:26 24 4
gpt4 key购买 nike

我似乎无法在网上找到任何关于此的文档,并且我正在谷歌搜索的内容给了我很多相互矛盾的信息......

最佳答案

来自iphonedevsdk.com :

The accelerometers used in the first and second generation iPhones (and I assume also the iPod touches) operate in two modes: +/- 2 g, and +/- 8 g. (Actually, as you observed, they report accelerations somewhat outside the nominal range. Accuracy is not spec'ed outside that range, though.)

Apple operates them in the +/- 2 g mode. There is a tradeoff: The current resolution is nominally 0.018 g, according to the datasheet (though my first generation iPhone uses 0.018168604, according to a modified version of AccelerometerGraph). In the +/- 8 g mode, the resolution would be four times cruder.

I assume Apple decided that the finer resolution would be more useful than the wider range. (I'd rather see finer resolution than 0.018 g. So neither of us is fully satisfied.)

You cannot change the mode with any published feature of the APIs. Since they are passing acceleration as a double, they could theoretically allow a change in mode, and simply look at the mode when rescaling the A/D value, before reporting acceleration. (The obvious place to set the mode would be in the call which sets up the application to receive accelerometer information.) However, for backward compatibility, the OS would have to set the accelerometer mode to +/- 2 g at the beginning of the application. And none of the background processes could be allowed to set the accelerometer mode.

关于iphone - iPhone 上的加速器范围是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/722600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com