I am looking for an info about how AP
knows exactly the yaw and pitch position?
I guess it should has some gyro in some module.
If it is true what module responsible for the gyro?
Our EFIS products generate attitude, rate information, Gs, and more. The Autopilot features are essentially software that's integrated into and built on top of the EFIS system, so it also inherently knows attitude, rates, and so on.