Discrete acceleration data to position

10 ビュー (過去 30 日間)
Jen-Yu Hsiao
Jen-Yu Hsiao 2013 年 1 月 31 日
I can get accelerator vector data from LEGO Accel sensor by every sampling time. For example when t=1 [x;y;z]=[15;9;220] when t=2 [x;y;z]=[7;5;221]
How can I transform acceleration data to position/displacement?
(<http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&key=NAC1040>)
Many thanks~~~

採用された回答

Carlos
Carlos 2013 年 1 月 31 日
I am not sure, but theoretically ,if you have acceleration, and you want to get displacement, you have to integrate to get velocity, and then integrate to get displacement. Try function cumtrapz() which enables you to perform numerical integration. However I think it is much better if you interpolate your displacement data to obtain an analytical expression of the displacement, and then integrate the expression twice to obtain an analytical expresion for acceleration.
  1 件のコメント
Jen-Yu Hsiao
Jen-Yu Hsiao 2013 年 3 月 5 日
thank you very much ~ but ... maybe the acceleration have noise so that I can't get the right position.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLEGO MINDSTORMS EV3 Hardware についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by