In my application I am receiving continuous data representing velocity from my sensor and i need a code to integrate this raw data into angular position. Thank you
Why isn't this just a matter of keeping one variable representing the current position (well, one variable per axis), which you adjust by (sensor reading * scaling factor) every time you read the sensor?
I am receiving continuous data representing velocity from my sensor
No, you are not. You are receiving data representing velocity at some point in time. You have to keep track of that time as well as the velocity, in order to determine distance.
ok. so how do i go about doing that
position = position + velocity_reading * time_diff;