DJI Mobile SDK Documentation

      class GimbalBalanceDetectionState

      class GimbalBalanceDetectionState
      Package:dji.common.gimbal.XPortState
      Description:

      This class provides current balance detection information of the gimbal.

      Class Members:
      Balance Detection Status
      method
      method getStatus
      BalanceDetectionProgressStatus getStatus()
      Package:dji.common.gimbal.XPortState
      Description:

      The balance detection status.

      Return:
      BalanceDetectionProgressStatusAn enum value of BalanceDetectionProgressStatus.
      Result On Pitch
      method
      method getResultOnPitch
      DetectionResultOnAxis getResultOnPitch()
      Package:dji.common.gimbal.XPortState
      Description:

      Gimbal balance detection result on pitch.

      Return:
      DetectionResultOnAxisAn enum value of DetectionResultOnAxis.
      Result On Roll
      method
      method getResultOnRoll
      DetectionResultOnAxis getResultOnRoll()
      Package:dji.common.gimbal.XPortState
      Description:

      Gimbal balance detection result on roll.

      Return:
      DetectionResultOnAxisAn enum value of DetectionResultOnAxis.
      Result On Yaw
      method
      method getResultOnYaw
      DetectionResultOnAxis getResultOnYaw()
      Package:dji.common.gimbal.XPortState
      Description:

      Gimbal balance detection result on yaw.

      Return:
      DetectionResultOnAxisAn enum value of DetectionResultOnAxis.
      Direction Adjustment State
      method
      method getDirectionAdjustmentStateOnPitch
      DirectionState getDirectionAdjustmentStateOnPitch()
      Package:dji.common.gimbal.XPortState
      Description:

      Direction adjustment state on Pitch.

      Return:
      DirectionStateReturn an object of DirectionState.
      method getDirectionAdjustmentStateOnRoll
      DirectionState getDirectionAdjustmentStateOnRoll()
      Package:dji.common.gimbal.XPortState
      Description:

      Direction adjustment state on roll.

      Return:
      DirectionStateReturn an object of DirectionState.
      method getDirectionAdjustmentStateOnYaw
      DirectionState getDirectionAdjustmentStateOnYaw()
      Package:dji.common.gimbal.XPortState
      Description:

      Direction adjustment state on yaw.

      Return:
      DirectionStateReturn an object of DirectionState.
      Progress
      method
      method getProcess
      int getProcess()
      Package:dji.common.gimbal.XPortState
      Description:

      Gimbal's balance detection progress percentage.

      Return:
      intAn int value of detection progress.
      Check if Aircraft Stability Satisfied
      method
      method isAircraftStabilitySatisfied
      boolean isAircraftStabilitySatisfied()
      Package:dji.common.gimbal.XPortState
      Description:

      false if aircraft stability does not meet requirements.

      Return:
      booleanA boolean value to check the aircraft's stability.
      Check if Aircraft Motor On
      method
      method isAircraftMotorOn
      boolean isAircraftMotorOn()
      Package:dji.common.gimbal.XPortState
      Description:

      Turn off aircraft motor and run balance detection again if this is true.

      Return:
      booleanA boolean value to check the aircraft's motor on.
      Check if Gimbal Motor Overloaded
      method
      method isGimbalMotorOverloaded
      boolean isGimbalMotorOverloaded()
      Package:dji.common.gimbal.XPortState
      Description:

      true if the gimbal motor is overloaded. Unable to test normally.

      Return:
      booleanA boolean value to check if the gimbal motor is overloaed.
      Callbacks
      class