Row Yaw Pitch From Gyroscope

The accelerator part of the module might be used as an orientation sensor. But only if it is fixed in translation, and only rotated and centered on the center of gravity or hinge point. If the readings of the accelerator axis are calibrated, then you could use the value of the acceleration components and the arctangent/arcsine/arccosine function to calculate angles. The reading of the accelerator will be caused by the attraction of gravity if translation motion is fixed (and properly centered on the hinge). Any movement by hand or whatever would add an additional acceleration that cannot be measured or derived by the other sensors of this component. If the accelerator is not centered on the hingepoint or center of gravity, then centripetal force will add to the acceleration as it turns. And wil cause the wrong angle to be calculated. So, in short, it should not be accelerated and descelerated from one position to another. And only measured when stationary.

Maybe it helps to explain what sort of thing your are holding in space, and we can suggest alternate ways to measure orientation.