如何衡量汽车的速度通过​​电话与加速度计和陀螺仪?

编程入门 行业动态 更新时间:2024-10-26 20:27:23
本文介绍了如何衡量汽车的速度通过​​电话与加速度计和陀螺仪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道汽车的当前速度,并作出通过路径。我有一个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).

问候。

更多推荐

如何衡量汽车的速度通过​​电话与加速度计和陀螺仪?

本文发布于:2023-10-08 02:05:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1471197.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加速度计   陀螺仪   速度   电话   汽车

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!