I got a few question on calculating velocity and position. First as u look at the picture, i have already remove g from acc data. So next i need to find velocity which is v, what i need to sub for T? is it 9.8m/s? and my a = totalacc? and how about the value for v[k] ?
are approximations for estimating the velocity and position, estimations like this are used when the acceleration of the system is not constant and does not have a closed-form solution. The equations given by others are used when the acceleration of the system is constant, about the only time acceleration is constant is in a Physics classroom. v[k+1} is the velocity at the kth + 1 step, likewise a[k] is the acceleration at the kth stepand T is the time increment.
The approximations above are a very crude way to solve for velocity and acceleration, but probably satisfactory for your application as long as T is chosen appropriately.
By the way Physics is not case dependent, we use upper and lower case letters in equations simply as a matter of choice it does not change the Physics.
By the way Physics is not case dependent, we use upper and lower case letters in equations simply as a matter of choice it does not change the Physics
But what about "g" and "G"?
Those are style decisions that do not affect the physical world at all. There is nothing unique about the meaning of g or G they can be defined to be whatever you want, that is why in technical papers the authors usually are very careful to define any symbols, like g and G, usually the first time they are used, when equations are written any symbols not already clearly defined are defines either right before or after the equation.
The first thing I checked was the total acceleration and it was wrong I stopped at that point. It would be a lot easier to look at the code that was supposed to implement those equations then looking at the output.
No. The accelerations in the X, Y and Z directions are completely independent of each other.
You can estimate velocity and position for each direction stepwise, using equations similar to what you have, but those three independent accelerations give rise to three equations for the X, Y and Z velocities and three equations for the X, Y and Z positions.
AWOL:
It's just that, in a C context, "^" confuses a lot of people (especially if they're from a BASIC background)
I seem to be suffering from a sawdust brain today. I had forgotten that C uses ^ as XOR. What's even more unforgiveable - so does Ruby. I will edit my post to use **.