Distance and velocity from acceleration plot

2 visualizaciones (últimos 30 días)
Judah
Judah el 31 de Jul. de 2022
Comentada: Judah el 31 de Jul. de 2022
Hi,
I have some accelration data from an IMU and would like to get velocity and distance.
How could I do that?
Thanks in advance
figure
plot(dugyro,IMU_AccZ)
title('Acc Z - Raw Data')
ylabel("(m/sec/sec)")

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Jul. de 2022
You could use cumtrapz(), twice.
Caution: using numeric integration to calculate distance and velocity is rather prone to error.
Even the best accelerometers, with a standard error of 10 micro-g, would accumulate a 50-meter error within 17 minutes
  5 comentarios
Walter Roberson
Walter Roberson el 31 de Jul. de 2022
ds = seconds(dugyro);
Vel = cumtrapz(ds, New_IMU_AccZ);
dist = cumtrapz(ds, Vel);
Judah
Judah el 31 de Jul. de 2022

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by