hello, i just started using arduino,and will like to get the code to integrate the raw gyro values i am getting from my sensor (mpu-9150).Using loops or any method that will work .Thank you

If all you had was a pencil and paper, how would you integrate a sequence of numbers?

depends..i will probably use numerical integration .why?

Because that's how you're going to do it on a microcontroller

ok …but how will i go about it.i just started learning C,so i’m new with all this stuffs

The Arduino IDE is packed with example programs.

I don't suppose any of them include your exact problem, but I bet if you worked through a few, you'd have a much better chance of knowing how to go about solving your problem