DJI Mobile SDK Documentation

      class GimbalAngleRotation

      class GimbalAngleRotation implements DJIValue, JNIProguardKeepTag, ByteStream
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Define setting information about the rotation of gimbal angle mode. The body coordinate system of the gimbal is used here.

      Class Members:

      Members

      method
      method getMode
      GimbalAngleRotationMode getMode()
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Return gimbal angle rotation mode.

      Return:
      GimbalAngleRotationModeGimbal Angle Rotation Mode
      method
      method setMode
      void setMode(GimbalAngleRotationMode mode)
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Set the gimbal angle rotation mode.

      Input Parameters:
      GimbalAngleRotationMode modeGimbal angle rotation mode.
      method
      method getPitch
      Double getPitch()
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Get the pitch angle of gimbal rotation.

      Return:
      DoublePitch angle of gimbal rotation.
      method
      method setPitch
      void setPitch(Double pitch)
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Set pitch angle of gimbal rotation. The positive number is rotated upward, while the negative number is rotated downward. Please setting referring: getPitch.

      Input Parameters:
      Double pitchPitch angle of gimbal rotation.
      method
      method getYaw
      Double getYaw()
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Get the yaw angle of gimbal rotation.

      Return:
      DoubleYaw angle of gimbal rotation.
      method
      method setYaw
      void setYaw(Double yaw)
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Set the yaw angle of gimbal rotation. The positive number is rotated right, while negative number is rotated left. Please setting referring: getYaw.

      Input Parameters:
      Double yawYaw angle of gimbal rotation.
      method
      method getRoll
      Double getRoll()
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Get the yaw angle of gimbal rotation.

      Return:
      DoubleRoll angle of gimbal rotation.
      method
      method setRoll
      void setRoll(Double roll)
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Set the roll angle of gimbal rotation. Positive number is rotated right, while negative number is rotated left. Please refer to getRoll to set.

      Input Parameters:
      Double rollRoll angle of gimbal rotation.
      method getDuration
      Double getDuration()
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Get the time of gimbal rotation operation, which does not take effect in waypoint mission.

      Return:
      DoubleTime of gimbal rotation operation. Unit:second.
      method setDuration
      void setDuration(Double duration)
      Package:dji.sdk.keyvalue.value.gimbal
      Description:

      Set the time of gimbal rotation operation, which does not take effect in the waypoint mission.

      Input Parameters:
      Double durationTime of gimbal rotation operation. Unit:second.