I have a project measure the distance that a robot will go(only straight line ). So, we used a mma7361 or any other IMU sensor. I could not find any programming code that helps me to calculate the distance using IMU with kalman filter. I will be so grateful if someone helps me to write the code!!.
Keep it simple and stupid firstly.
Run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.