DJI Mobile SDK Documentation

      class GimbalKey

      class GimbalKey extends DJIKey
      Package:dji.keysdk
      Inherits From:DJIKey
      Description:

      GimbalKey is an object providing access to Gimbal attributes.

      Class Members:
      method
      method create
      static GimbalKey create(@GimbalParamKey @NonNull String paramKey)
      Package:dji.keysdk
      Description:

      Creates a Gimbal key.

      Input Parameters:
      @GimbalParamKey @NonNull String paramKeyA valid paramKey.
      Return:
      static GimbalKeyGimbal Key
      Inherited Methods:
      Class Keys:

      YAW_RIGHT_ENDPOINT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setEndpoint

      getEndpoint

      PITCH_CONTROLLER_SMOOTHING_FACTOR

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerSmoothingFactor

      setControllerSmoothingFactor

      getControllerSmoothingFactor

      getControllerSmoothingFactor

      getPitchControllerSmoothingFactor

      START_BALANCE_DETECTION

      Access:

      ACTION

      Type:

      -

      API:

      -

      IS_ATTITUDE_RESET

      Access:

      PUSH

      Type:

      Boolean

      API:

      -

      FIRMWARE_VERSION

      Access:

      GET

      Type:

      String

      API:

      -

      ROLL_MOTOR_CONTROL_GYRO_FILTERING_FACTOR

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlGyroFilteringFactor

      getMotorControlGyroFilteringFactor

      ROTATE

      Access:

      ACTION

      Type:

      -

      API:

      rotate

      Rotation

      YAW_MOTOR_CONTROL_PRE_CONTROL

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlPreControl

      getMotorControlPreControl

      BALANCE_STATE

      Access:

      PUSH

      Type:

      -

      API:

      getBalanceState

      BalanceState

      IS_CALIBRATING

      Access:

      PUSH

      Type:

      Boolean

      API:

      isCalibrating

      MOTOR_ENABLED

      Access:

      SET, GET

      Type:

      Boolean

      API:

      setMotorEnabled

      getMotorEnabled

      YAW_ANGLE_WITH_AIRCRAFT_IN_DEGREE

      Access:

      PUSH

      Type:

      Float

      API:

      getYawRelativeToAircraftHeading

      APPLY_MOTOR_CONTROL_PRESET

      Access:

      ACTION

      Type:

      MotorControlPreset

      API:

      applyMotorControlPreset

      MotorControlPreset

      CONCENTRICITY_CHECK_RESULT

      Access:

      PUSH

      Type:

      GimbalCoaxialityDetectionState

      API:

      -

      PITCH_SMOOTH_TRACK_DEADBAND

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackDeadband

      getSmoothTrackDeadband

      getPitchSmoothTrackDeadband

      YAW_SMOOTH_TRACK_ENABLED

      Access:

      SET, GET

      Type:

      Boolean

      API:

      setSmoothTrackEnabled

      getSmoothTrackEnabled

      isYawSmoothTrackEnabled

      IS_MOTOR_OVER_LOADED

      Access:

      PUSH

      Type:

      -

      API:

      isMotorOverloaded

      IS_GIMBAL_ON_TOP

      Access:

      PUSH

      Type:

      Boolean

      API:

      -

      SERIAL_NUMBER

      Access:

      GET

      Type:

      String

      API:

      -

      FINE_TUNE_ROLL_IN_DEGREES

      Access:

      ACTION

      Type:

      Float

      API:

      fineTuneRollInDegrees

      START_CALIBRATION

      Access:

      ACTION

      Type:

      -

      API:

      startCalibration

      IS_YAW_AT_STOP

      Access:

      PUSH

      Type:

      Boolean

      API:

      isYawAtStop

      TOGGLE_SELFIE

      Access:

      ACTION

      Type:

      -

      API:

      toggleSelfie

      ROLL_MOTOR_CONTROL_PRE_CONTROL

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlPreControl

      getMotorControlPreControl

      PITCH_DOWN_ENDPOINT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setEndpoint

      PITCH_MOTOR_CONTROL_GYRO_FILTERING_FACTOR

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlGyroFilteringFactor

      getMotorControlGyroFilteringFactor

      MODE

      Access:

      PUSH, SET

      Type:

      GimbalMode

      API:

      setMode

      getMode

      GimbalMode

      IS_TESTING_BALANCE

      Access:

      PUSH

      Type:

      Boolean

      API:

      isBalanceTesting

      YAW_CONTROLLER_DEADBAND

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerDeadband

      getControllerDeadband

      YAW_LEFT_ENDPOINT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setEndpoint

      getEndpoint

      CAPABILITIES

      Access:

      PUSH

      Type:

      Map

      API:

      getCapabilities

      YAW_CONTROLLER_SMOOTHING_FACTOR

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerSmoothingFactor

      setControllerSmoothingFactor

      getControllerSmoothingFactor

      getControllerSmoothingFactor

      getYawControllerSmoothingFactor

      STIFFNESS_SELF_TUNING_RESULT

      Access:

      PUSH

      Type:

      GimbalControlParametersAutoTuningState

      API:

      -

      ROLL_MOTOR_CONTROL_STIFFNESS

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStiffness

      getMotorControlStiffness

      CONNECTION

      Access:

      PUSH

      Type:

      Boolean

      API:

      -

      MOVEMENT_SETTINGS_PROFILE

      Access:

      SET, GET

      Type:

      MovementSettingsProfile

      API:

      setMovementSettingsProfile

      getMovementSettingsProfile

      getProfile

      MovementSettingsProfile

      ROLL_FINE_TUNE_IN_DEGREES

      Access:

      PUSH

      Type:

      Float

      API:

      getRollFineTuneInDegrees

      PITCH_MOTOR_CONTROL_STRENGTH

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStrength

      getMotorControlStrength

      YAW_SMOOTH_TRACK_SPEED

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackSpeed

      getSmoothTrackSpeed

      getYawSmoothTrackSpeed

      CALIBRATION_PROGRESS

      Access:

      PUSH

      Type:

      Integer

      API:

      getCalibrationProgress

      START_CONTROL_PARAMETERS_AUTO_TUNING

      Access:

      ACTION

      Type:

      -

      API:

      -

      YAW_INVERTED_CONTROL_ENABLED

      Access:

      SET, GET

      Type:

      -

      API:

      setInvertedControlEnabled

      getInvertedControlEnabled

      PITCH_MOTOR_CONTROL_PRE_CONTROL

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlPreControl

      getMotorControlPreControl

      ROLL_TEST_RESULT

      Access:

      PUSH

      Type:

      BalanceTestResult

      API:

      getRollBalanceTestResult

      BalanceTestResult

      IS_STUCK

      Access:

      PUSH

      Type:

      Boolean

      API:

      -

      PITCH_CONTROLLER_DEADBAND

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerDeadband

      getControllerDeadband

      GIMBAL_ATTITUDE_SYNCHRONIZATION_ENABLED

      Access:

      PUSH, SET

      Type:

      Boolean

      API:

      -

      FINE_TUNE_PITCH_IN_DEGREES

      Access:

      ACTION

      Type:

      Float

      API:

      -

      PITCH_CONTROLLER_SPEED_COEFFICIENT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerSpeedCoefficient

      getControllerSpeedCoefficient

      getPitchControllerSpeedCoefficient

      RESET_GIMBAL_WITH_PARAMETERS

      Access:

      ACTION

      Type:

      -

      API:

      -

      START_CONCENTRICITY_DETECTION

      Access:

      ACTION

      Type:

      -

      API:

      -

      START_BALANCE_TEST

      Access:

      ACTION

      Type:

      -

      API:

      startBalanceTest

      CONTROLLER_MODE

      Access:

      SET, GET

      Type:

      ControllerMode

      API:

      setControllerMode

      getControllerMode

      ControllerMode

      PITCH_RANGE_EXTENSION_ENABLED

      Access:

      SET, GET

      Type:

      Boolean

      API:

      setPitchRangeExtensionEnabled

      getPitchRangeExtensionEnabled

      IS_ROLL_AT_STOP

      Access:

      PUSH

      Type:

      Boolean

      API:

      isRollAtStop

      BALANCE_CHECK_RESULT

      Access:

      PUSH

      Type:

      GimbalBalanceDetectionState

      API:

      -

      RESET_GIMBAL_YAW

      Access:

      ACTION

      Type:

      -

      API:

      -

      IS_PITCH_AT_STOP

      Access:

      PUSH

      Type:

      Boolean

      API:

      isPitchAtStop

      DISPLAY_NAME

      Access:

      PUSH

      Type:

      String

      API:

      -

      FINE_TUNE_YAW_IN_DEGREES

      Access:

      ACTION

      Type:

      Float

      API:

      -

      PITCH_UP_ENDPOINT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setEndpoint

      getEndpoint

      STOP_BALANCE_DETECTION

      Access:

      ACTION

      Type:

      -

      API:

      -

      YAW_MOTOR_CONTROL_GYRO_FILTERING_FACTOR

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlGyroFilteringFactor

      getMotorControlGyroFilteringFactor

      ROLL_MOTOR_CONTROL_STRENGTH

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStrength

      getMotorControlStrength

      PITCH_FINE_TUNE_IN_DEGREES

      Access:

      PUSH

      Type:

      Float

      API:

      -

      PITCH_INVERTED_CONTROL_ENABLED

      Access:

      SET, GET

      Type:

      -

      API:

      setInvertedControlEnabled

      getInvertedControlEnabled

      STOP_CONTROL_PARAMETERS_AUTO_TUNING

      Access:

      ACTION

      Type:

      -

      API:

      -

      PITCH_TEST_RESULT

      Access:

      PUSH

      Type:

      BalanceTestResult

      API:

      getPitchBalanceTestResult

      BalanceTestResult

      YAW_SMOOTH_TRACK_DEADBAND

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackDeadband

      getSmoothTrackDeadband

      getYawSmoothTrackDeadband

      YAW_FINE_TUNE_IN_DEGREES

      Access:

      PUSH

      Type:

      Float

      API:

      -

      YAW_MOTOR_CONTROL_STRENGTH

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStrength

      getMotorControlStrength

      IS_MOBILE_DEVICE_MOUNTED

      Access:

      PUSH

      Type:

      -

      API:

      isMobileDeviceMounted

      RESET_GIMBAL

      Access:

      ACTION

      Type:

      -

      API:

      reset

      YAW_MOTOR_CONTROL_STIFFNESS

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStiffness

      getMotorControlStiffness

      YAW_CONTROLLER_SPEED_COEFFICIENT

      Access:

      SET, GET

      Type:

      Integer

      API:

      setControllerSpeedCoefficient

      getControllerSpeedCoefficient

      getYawControllerSpeedCoefficient

      YAW_SMOOTH_TRACK_ACCELERATION

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackAcceleration

      getSmoothTrackAcceleration

      getYawSmoothTrackAcceleration

      IS_CALIBRATION_SUCCESSFUL

      Access:

      PUSH

      Type:

      Boolean

      API:

      isCalibrationSuccessful

      RESTORE_FACTORY_SETTINGS

      Access:

      ACTION

      Type:

      -

      API:

      restoreFactorySettings

      PITCH_SMOOTH_TRACK_ENABLED

      Access:

      SET, GET

      Type:

      Boolean

      API:

      setSmoothTrackEnabled

      getSmoothTrackEnabled

      isPitchSmoothTrackEnabled

      PITCH_SMOOTH_TRACK_SPEED

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackSpeed

      getSmoothTrackSpeed

      getPitchSmoothTrackSpeed

      STOP_CONCENTRICITY_DETECTION

      Access:

      ACTION

      Type:

      -

      API:

      -

      ATTITUDE_IN_DEGREES

      Access:

      PUSH

      Type:

      Attitude

      API:

      getAttitudeInDegrees

      Attitude

      YAW_SIMULTANEOUS_FOLLOW_ENABLED

      Access:

      SET, GET

      Type:

      Boolean

      API:

      -

      PITCH_SMOOTH_TRACK_ACCELERATION

      Access:

      SET, GET

      Type:

      Integer

      API:

      setSmoothTrackAcceleration

      getSmoothTrackAcceleration

      getPitchSmoothTrackAcceleration

      RESET_CONTROL_PARAMETERS

      Access:

      ACTION

      Type:

      -

      API:

      -

      PITCH_MOTOR_CONTROL_STIFFNESS

      Access:

      SET, GET

      Type:

      Integer

      API:

      setMotorControlStiffness

      getMotorControlStiffness