Quote:current orientation I tried tracking the cumulative angle changes but it got messy fast.In that case, the accumulated roll is to be expected. If you don't want this, you'll need to implement some sort of autoleveling, or manage your vehicle's orientation in some other way.
It also looks to me like there might be some issues with your rotation function. Does the quaternion class that you're using use the standard convention for multiplication order? Or does it use the 'reversed' convention?