DJI Mobile SDK Documentation

      class Builder

      static final class Builder
      Package:dji.common.gimbal
      Description:

      Object builder.

      Class Members:
      Constructor
      method
      method Builder
      Builder()
      Package:dji.common.gimbal
      Description:

      Default rotation constructor method.

      method
      method Builder
      Builder(Rotation rotation)
      Package:dji.common.gimbal
      Description:

      Constructor method that clones a rotation object.

      Input Parameters:
      Rotation rotationAn instance of Rotation.
      Mode
      method
      method mode
      Builder mode(RotationMode mode)
      Package:dji.common.gimbal
      Description:

      Constructor method.

      Input Parameters:
      RotationMode modeAn enum value of RotationMode.
      Return:
      BuilderBuilder object for mode
      Attitude
      method
      method pitch
      Builder pitch(float pitch)
      Package:dji.common.gimbal
      Description:

      Constructor method.

      Input Parameters:
      float pitchA float value of pitch.
      Return:
      BuilderBuilder object for pitch
      method
      method roll
      Builder roll(float roll)
      Package:dji.common.gimbal
      Description:

      Constructor method.

      Input Parameters:
      float rollA float value of roll.
      Return:
      BuilderBuilder object for roll
      method
      method yaw
      Builder yaw(float yaw)
      Package:dji.common.gimbal
      Description:

      Constructor method.

      Input Parameters:
      float yawA float value of yaw.
      Return:
      BuilderBuilder object for yaw
      time
      method
      method time
      Builder time(double time)
      Package:dji.common.gimbal
      Description:

      Sets the completion time in seconds to complete an action to control the gimbal. If the the rotation mode is ABSOLUTE_ANGLE then the time determines the duration of time the gimbal should rotate to its new position. For example, if a value of 2.0 is used, then the gimbal will rotate to its target position in 2.0 seconds. Range is [0.1,25.5] seconds.

      Input Parameters:
      double timeA double value of time.
      Return:
      BuilderBuilder object for time
      Build
      method
      method build
      Rotation build()
      Package:dji.common.gimbal
      Description:

      Build the object.

      Return:
      RotationInstance of Rotation.