- Set Rotation class and its parameter.
mode：RELATIVE_ANGLE means rotate according to the current angle. ABSOLUTE_ANGLE means rotate according to aircraft's heading or true North. SPEED means rotate clockwise or counter-clockwise for a bit.
pitch，roll，yaw：Means the angle need to set（Meas the speed of rotation in speed mode, and the higher the value, the faster the rotation).
time：Means the total time consumption of rotation(Invalid in speed mode).
- Call gimbal.rotate to rotate the gimbal(In speed mode, you need to call rotate at a frequency, the recommended frequency is 10hz).