This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Looking for gyroo accelero code

Hi,
I dont know if this is the right forum but I'm supposed to write some code for a device containing an ARM uC that reads data from a gyro/accelero meter and determines its position in space. A read a lot of articles on the net. Kalman, double integration.... etc. Nowhere I find a strait piece of c-code just entering the realtime gyro and accelero values returning the absolute position in space. Most experts declare it's not accurate and will drift over time. I do not need a preciese position but a rough indication to detect in what direction the gyro/accelero object has moved. I developed my own application with old school physics formulas but measured distance is a factor 10 too small. I know all about the ARM uC and gyro/accelero (LSM6DS0) but would like to find some usefull simple c-code that solves my problem.
Thanks in advance,
Henk