Translate Pitch and Roll Angles of Object to those at different Yaw

491 Views Asked by At

I have been trying to find a method to translate the pitch and roll angles of one object to those of another connected object at a different yaw - i.e I have an IMU mounted on a quadcopter frame and a 3 axis gimbal mounted below.

If the gimbal is pointed straight ahead its pitch and roll values equal that of the IMU - however if the gimbal is rotated to say 30 degrees (relative to the frame) the pitch and roll values of the gimbal are now different from that of the IMU.

Could someone please provide the method to translate the pitch and roll angles of the frame to those that the gimbal is experiencing at a certain yaw angle.

I can easily solve this problem by mounting another IMU on the gimbal itself and using its pitch and roll values to stabilise the camera, but would like to know the mathematical solution.

Any help would be greatly appreciated.

EDIT: Top half of attached image shows camera and frame aligned while whole system pitched, lower half shows frame pitched at same angle but camera rotated to a certain yaw angle

I need to find the method to calculate the pitch and roll angles of the gimbal when knowing the pitch and roll of the frame and the yaw angle at which the gimbal is rotated relative to the frame.