I have to print graph of velocity (y- axis) wrt distance (x axis) with help of MCU.
I have sampled all distance points i.e total 2000 points, time period is also known its 5ms for each sample.
Now while calculating velocity, problem is diff b/w two consecutive distance values is very small.
Due to which I got discrete values values of velocity either 10 or 20 or 30 during entire frame.
Now my graph don't see continuous. How to plot it so that it can look more of continuous.
Its not necessary that I have to take two consecutive values for calculating velocity, I can take diff b/w 10 & 1 reading also.
But by this also velocity calculated is discrete.
I have sampled all distance points i.e total 2000 points, time period is also known its 5ms for each sample.
Now while calculating velocity, problem is diff b/w two consecutive distance values is very small.
Due to which I got discrete values values of velocity either 10 or 20 or 30 during entire frame.
Now my graph don't see continuous. How to plot it so that it can look more of continuous.
Its not necessary that I have to take two consecutive values for calculating velocity, I can take diff b/w 10 & 1 reading also.
But by this also velocity calculated is discrete.