MATLAB Answers

Is there a possibility to calculate the velocity of a car if I just have the GPS data and my acceleration

2 views (last 30 days)
Megan
Megan on 18 Oct 2019
Edited: Megan on 19 Feb 2020
I already tried the integration of acceleration, but the values I got where not realistic.

  3 Comments

David K.
David K. on 18 Oct 2019
What is the time step of your acceleration data? cumtrapz assumes it is 1. If it is smaller than that then your values could be way greater.
Changing your function calls to this may help fix the results to what you are expecting.
vx.data = cumtrapz(ax.time, ax.data);
David K.
David K. on 18 Oct 2019
Ok, so I do expect that that is causing at least some of your issues. If you try the change I proposed does the output look closer to what you are expecting?
Also, What is the plot you are showing? Just one of the velocities or a combination of all three?

Sign in to comment.

Accepted Answer

Sid Singh
Sid Singh on 21 Oct 2019
Edited: Sid Singh on 21 Oct 2019
Hi, it is possible with just the GPS data alone or just the Accelerometer data. You have to differentiate the GPS data and integrate the Accelerometer data to get raw velocity and ideally they should be the same.
You can compare the two velocities and look for a similarity.
Usually the data has noise so you may want to use a filtering technique like Kalman filtering which works best if your noise is gaussian or Particle filtering if your noise model can't be estimated.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.