I have gyroscope + accelerometer data at each time period T. I want to calculate the rotation of the object at each time - it can rotate on its axises. So I've read that it is convenient to represent the rotation of the system in terms of quaternions (not in Euler angles).
Is there any source code that can transform from angular velocity (from gyroscope) to the quaternions representation? Because in order to do it I need to solve the differential equation using numerical methods, what I don't want to do.
EDIT: Sorry forgot to say, the C++ source needed, thank you!