Residual offset in vertical speed computed with motionFX
Hello,
I'm experimenting with algobuilder, motionFX and IKS01A3 + SMK1229AAA.
Btw, very cool app for investigation.
My goal is to obtain vertical speed. As motionFX provide gravity vector with magnitude 1 (let's call it G) and linear acceleration vector (let's call it A).
I computed the vertical acceleration with the dot product A.G which leads to
Ax * Gx + Ay * Gy +Az * Gz
It looks like this method gives the expected result: I get the "same" curve for the "same" vertical movement whatever the orientation of the device and whatever the direction of the movement. (I used quotes for "same" because I'm moving the device by hand ie the movement is not an exact reproduction of the previous one).
However, it seems that there's an offset in result which depends on the orientation. It is particularly visible when the device is not moving: there's still a residual computed speed. If I flip the board, the residual speed is inverted.
You can see it on the screenshot.

Here are my questions:
- Is my computation right?
- Is there a way to remove this offset without using another sensor?
Thanks
Julien
