Hi,
I'm reading the application note AN3397 and was wondering in what unit is the measured position in?
In the note I don't see Time being a variable anywhere. It is stated that the time between samples MUST be the same however.
So a is in m/s2
v is in m/s ?
and positionX in what?
Here are the integrations I'm doing, with sampling rate 1.5ms:
velocityx[1]= velocityx[0]+ accelerationx[0]+ ((accelerationx[1] -accelerationx[0])/2)*0.0015;
positionX[1]= positionX[0] + velocityx[0] + ((velocityx[1] - velocityx[0])/2)*0.0015;
Do they seem correct?
thanks