如何衡量汽车的速度通过​​电话与加速度计和陀螺仪? [英] How to measure the speed of car by phone with accelerometer and gyroscope?

查看:129
本文介绍了如何衡量汽车的速度通过​​电话与加速度计和陀螺仪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道汽车的当前速度,并作出通过路径。我有一个Android手机与加速度计和陀螺仪送我的数据。这是坐标可能会不一样轿厢coordiante系统中的电话系统中的数据。

I want to know current speed of car and make a passed path. I have an Android phone with accelerometer and gyroscope which sent me data. This is the data in phone system of coordinate that probably wouldn't the same as coordiante system of car.

我怎样才能改变这种加速度和旋转的坐标?车载系统

How I can transform this accelerations and rotations to car system of coordinate?

推荐答案

为您的通用问题的通用的答案是没有。加速度测量变化的速度,所以最好你可以从加速,是速度的变化。

The generic answer for your generic question is no. The acceleration measures the changes in the speed, so the best you could get from acceleration, is the speed variation.

要获得绝对速度你就必须有初始速度,并把它添加到速度的变化:

To get the absolute speed you would have to have the initial speed and add it to the speed change:

V(T)= V0 + A * T

所以,如果你有一辆汽车沿直线移动和设备被固定在车上,你可以得到伊斯利的速度变化(虽然测量的误差加起来,并迅速导致差异)

So, if you would have a car moving along a straight line, and your device was fixed to the car, you could get easly the speed changes (although measurements errors will add up and quickly lead to discrepancies)

在实践中,你将面临许多问题,努力实现它,即:

In practice you will face many issues trying to implement it, namely:

  • 您所需要的初始速度来进行确定的基础上,参照相同的加速度。这将需要一些测量和大量trignometry的,因为你会得到不同的速率不同sensores这两个值。
  • 在这款车将不会在一条直线上移动,所以你加速的参考会不断移动(多了很多trignometry及结石)。
  • 如果该装置是在用户手中时,设备的动作相对于所述轿厢将增加更多的计算(及累积误差)。
  • You need the initial speed to be determinate based on the same referential as the acceleration. This would require some measurements and a lot of trignometry, as you would get both values from different sensores at different rates.
  • The car will not move in a straight line, so your acceleration referential will be constantly moving (a lot more of trignometry and calculus).
  • If the device is in the user hand, the device movements in relation to the car will increase even more the calculations (and accumulated errors).

问候。

这篇关于如何衡量汽车的速度通过​​电话与加速度计和陀螺仪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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