Orientation estimation using modified quaternion library

Hi, I’ve been working on some new orientation estimation methods using a modified math library to handle the quaternions for a quadcopter. I see that the quaternion is published to uORB under the local_position_estimator module but am unable to find where it is used to calculate the orientation of the drone. Does anyone know where this quaternion is used or am I totally off base here?