简体   繁体   English

使用加速度计和陀螺仪以及加速度计和磁力计来查找方向有什么区别?

[英]What is the different between using accelerometer&gyroscope and accelerometer&Magnetometer to find the orientation?

Using accelerometer&gyroscope to find orientation need to integrate gyroscope and need to use filter. 使用加速度计和陀螺仪找到方向需要集成陀螺仪并需要使用滤波器。 The program will become very complicated. 该程序将变得非常复杂。 I try to use this method but I can't control the time interval of getting sensor data. 我尝试使用此方法,但无法控制获取传感器数据的时间间隔。 Therefore, I can't really figure out how to do it. 因此,我真的不知道该怎么做。

Using accelerometer&Magnetometer seems easier to do it. 使用加速度计和磁力计似乎更容易做到。

Then, what is the different between these two method? 那么,这两种方法有何不同?

Thank you 谢谢

Accelerometer and gyroscope measures acceleration and orientation along linear and rotational axis while magnetometer and accelerometer measures orientation along linear axis and magnetic fields produced by surface of earth. 加速度计和陀螺仪测量沿线性和旋转轴的加速度和方向,而磁力计和加速度计则测量沿线性轴的方向和地球表面产生的磁场。 I went through a module that has an inbuilt filter on the sensor shield and the code also worked well. 我经历了一个模块,该模块在传感器护罩上具有内置过滤器,并且代码也运行良好。 This is 3D Accelerometer 3D Gyroscope 3D Magnetometer. 这是3D加速度计3D陀螺仪3D磁力计。

https://www.controleverything.com/content/Accelorometer?sku=LSM9DS0_I2CS https://www.controleverything.com/content/Accelorometer?sku=LSM9DS0_I2CS

You can use the code according to the language you desire 您可以根据需要的语言使用代码

https://github.com/ControlEverythingCommunity/LSM9DS0 https://github.com/ControlEverythingCommunity/LSM9DS0

Thanks.. 谢谢..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM