Linear acceleration motionfx slope problem?
Hello I am using Lsm6dsox(acc and gyro) and lsm303ah(mag) and sending data to motionfx to calculate the linear acceleration.
My sensors are working in mode2 sync with drdy at 104HZ. So I'm reading every 10ms the data from the sensors and sending it to motionfx to calculate the linear acceleration. I ve set the motionfx setting as described in example, and calibrated the magnetometer.
My problem is the following:
So I shake the board and rotate and the data seems good, but when I put it on table while shaking to rest in a stationary state,it has a slope it takes to long to convergate to zero(about 2s).
How can I achieve to go instantly to zero when in statinary state?
