-
-
Notifications
You must be signed in to change notification settings - Fork 20
Description
One reader shared some helpful suggestions about some post-processing techniques that can be used to obtain other information from the accelerometer data.
Examples:
- Position
- Velocity
Copy/pasted rough notes from the reader:
But integration is super simple in either script or spreadsheet. I have included a spreadsheet with 2 of your shots. X axis.
It is just accumulation. Cumulative addition of the values in your data set while subtracting the requisite offset with each addition.
This is as simple as it gets in signal processing. Nothing is simpler… besides staying home. It is the 1+1=2 of signal processing.
Assume your accel data in array a(n)
v_old=0 /forced initial condition.
p_old=0 /forced initial condition.
a offset=0.40271 (by averaging series points 6000 to 7000, rifle is totally still)
v_offset= ????? should be zero unless there are issues./Do the velocity
For i = 1 to 100
v(i)=v_old-a_offset+a(1)
v_old=v(i)
next i/do the position
For i = 1 to 100
p(i)=p_old-v_offset+v(1)
p_old=p(i)
next iThis is numerical integration of data. Not to be confused with numerical integration of a function by rectangle, trapezoidal …. Runge-Kutta or many other methods.
I am simply summing the data points.
FYI, differentiation is simply subtraction instead of addition and no offset is applied.