Axis flipping when using orientation tracker

Hi,
I’m using an intersens inertiacube 3 to control the actors rotation and I’ve run into an issue. When I view in 1 direction, everything matches up perfectly however, the roll and pitch gradually get iverted (looking up becomes looking down etc) when yaw is rotated through 180 degrees (looking behind). I’m getting the correct numbers from my orientation tracker so I suspect I’m doing something wrong in applying the rotation to the actor.

I’ve attached the blueprint and the output when running the application. Could somebody please point me in the right direction? Any help would be greatly appreciated!

Ok, found out what to do. Apparently, you use “set actor rotation” only for the yaw of the actor. You have to use “add actor world rotation” for the pitch and roll, then it matches perfectly…