Using IMU (MPU-9250) to get rough 3d position-data

Hello dear users,

I need to log the rough position in 3d space, by using a IMU like the gy9250. I don´t have a lot of experience with calculating 3d data from Sensors.
I Know that IMUs drift a lot and that I have to recalibrate the Sensor every few meters it went. This is not a problem for me. Just a rough 3d position would be all I need.

So far I can receive

  • Gyro (x,y,z)
  • Magneto (x,y,z)
  • and Accelero (x,y,z)
    Data.
    How would i have to match these numbers to get coordinates in 3d space.

Thank you already :)!

Best Regards,
Vincent

That really won't work at all with consumer grade IMUs, but here is one place to start reading about the theory:

http://www.chrobotics.com/library

It takes a rather large program just to get the 3D orientation. Here is an example for your sensor: https://github.com/richardstechnotes/RTIMULib-Arduino