Discrete acceleration data to position

조회 수: 5 (최근 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 CenterFile Exchange에서 LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by