加速度计的最小和最大值范围和传感器数据转换加速度计、最大值、传感器、最小

2023-09-05 09:44:32 作者:爱上自己

我从摩托罗拉摩托摹16 GB设备。它有LIS3DH 3轴加速度计。

I have moto g 16 GB device from Motorola. It has LIS3DH 3 axis Accelerometer.

有关阅读Max和加速度的最小值我已经使用这个API的。

For reading Max and Min value of Accelerometer i have used this APIs.

getMaximumRange()

有人说其节目零到接挑来挑去

不过,我的设备我得到的值 39.24

But for my device i get value 39.24

所以虽然我39.24 / 9.8 = 4.00〜是我的范围是+/-4克

so i though 39.24 / 9.8 = ~4.00 s my range is +/- 4g

但是,当我仅仅是阅读的X,Y,Z的数据并将其存储在文件中,并看向了我的智能手机给人最大加速度当值那么其显示值高达76米/秒2

But when i simply read x,y,z data and store it in file and see the values when giving max acceleration to the my smart phone then its shows values up to 76 m/sec2

什么这是什么意思?

我的设备的这个bug?

Is this bug of my device?

如何在+转换这个值 - 2克值。我的算法要在+ -2G格式值怎么给的?

how to convert this values in +- 2g values. my algorithm wants value in +-2g format how to give that?

如何进行切割或向下的传感器数据值取样?

how to perform cut of or down sampling of sensor data values ?

推荐答案

摩托G有动态configurabale SENSER。最初,它被配置4G中的模式。但是,当你可以让更多的加速您的移动它的变化是传感器模式并切换到8G,仍然您提供更多的加速,然后它会自动武功16克模式。过了一段时间就回去到4G模式。

moto g has dynamic configurabale senser. Initially it is configured in 4g mode. But when you gives more acceleration to your mobile it changes it sensor mode and switch to 8g and still you give more acceleration then it gest 16 g mode automatically. After some time it get back to 4g mode.

您可以对这个范围的变化Sensocr Accurcay更改回调。

You can have on Sensocr Accurcay change callback on this range change.

 
精彩推荐
图片推荐