DJI Mobile SDK Documentation

      class Attitude

      @EXClassNullAway
      class Attitude
      Package:dji.common.gimbal
      SDK Key:GimbalKey.ATTITUDE_IN_DEGREES
      Description:

      The gimbal's attitude in degrees relative to the aircraft. If you don't want a specific axis to get rotated, invoke the GimbalAttitudeAction method and set the value of the axis to NO_ROTATION in the Attitude object. By default, the values of pitch, roll, and yaw in the Attitude are set to NO_ROTATION.

      Class Members:
      Value
      method
      method getPitch
      float getPitch()
      Package:dji.common.gimbal
      Description:

      Pitch value in degrees.

      Return:
      floatA float value.
      method
      method getRoll
      float getRoll()
      Package:dji.common.gimbal
      Description:

      Roll value in degrees.

      Return:
      float<<android:A float value.>
      method
      method getYaw
      float getYaw()
      Package:dji.common.gimbal
      Description:

      Yaw value in degrees.

      Return:
      float<<android:A float value.>