Using the MPU-6050 gyro/accel to track motion on the X and Y axes

I hope the title says a lot about what I want to do

I'm curious whether I can do this or not because I've only recently used the said sensor. I have done the Teapot demo using Processing but I am not sure whether I can have the projected figure move horizontally and vertically. The only thing the demo showed was the "airplane" rotating on the respective axes, however I want the plane to move around.

In a more generalized sense, I want to track the motion of the gyroscope relative to its starting point , essentially plotting a line that follows its motion from where it started.

I hope my explanation is clear

Jerome

To get motion (translation) from accelerometers or rate gyros you integrate the output over time. Integrate once for velocity and integrate twice for distance. However, accuracy is not very good with hobby grade sensors as accelerometers are noisy and rate gyros drift.

groundFungus:
To get motion (translation) from accelerometers or rate gyros you integrate the output over time. Integrate once for velocity and integrate twice for distance. However, accuracy is not very good with hobby grade sensors as accelerometers are noisy and rate gyros drift.

Wow I can't believe I didn't think about this xD

However there is still the issue of getting to that point. Nonetheless, thank you for the suggestion and help. Any suggestions on how I go about doing this?