AHRS Orientation problem

I am having a problem with the orientation I have a pixhawk mounted upside down and Yawed 90 degrees so it is facing the left side. I think this should be roll 180 yaw 270 or roll 180 yaw 90. I have tried both configurations, but I will end up with either the pitch backward or the roll backward. I unable to think of reason why this wouldn’t work does anyone have any suggestions as to what I might be doing wrong?

Could you be mistaking the roll direction on the HUD artificial horizon? IE. banking the plane to the left will cause the horizon to tilt right on the HUD. If everything you say is true, then it may be a bug.

Your totally right I check it and that is what was wrong thanks.