| java.lang.Object | |
| ↳ | dji.common.gimbal.DJIGimbalState | 
This class provides the current state of the gimbal.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DJIGimbalState(DJIGimbalAttitude attitude, int rollFineTune, DJIGimbalWorkMode workMode, boolean isAttitudeReset, boolean isCalibrating, boolean isCalibrationSuccess, boolean isPitchReachMax, boolean isRollReachMax, boolean isYawReachMax, DJIGimbalBalanceTestResult pitchTestResult, DJIGimbalBalanceTestResult rollTestResult) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DJIGimbalAttitude | 
        getAttitudeInDegrees()
        
         The current gimbal attitude in degrees. 
  
   | ||||||||||
| DJIGimbalLoadingBalanceStatus | 
        getBalanceState()
        
         Returns the balance status of the gimbal. 
  
   | ||||||||||
| int | 
        getCalibrationProgress()
        
         Gets current progress (percentage) for calibration. 
  
   | ||||||||||
| DJIGimbalBalanceTestResult | 
        getPitchTestResult()
        
         Returns the pitch axis balance test result. 
  
   | ||||||||||
| float | 
        getRollFineTuneInDegrees()
        
         Returns the gimbal's roll fine-tune value. 
  
   | ||||||||||
| DJIGimbalBalanceTestResult | 
        getRollTestResult()
        
         Returns the roll axis balance test result. 
  
   | ||||||||||
| DJIGimbalWorkMode | 
        getWorkMode()
        
         Returns the gimbal's current work mode. 
  
   | ||||||||||
| boolean | 
        isAttitudeReset()
        
        true if the attitude has been reset. | ||||||||||
| boolean | 
        isCalibrating()
        
        true if the Gimbal is calibrating. | ||||||||||
| boolean | 
        isCalibrationSuccess()
        
        true if the gimbal calibration succeeded. | ||||||||||
| boolean | 
        isMobileDeviceMounted()
        
        true if the mobile device is mounted on the gimbal. | ||||||||||
| boolean | 
        isMotorOverloaded()
        
        true if one of the gimbal motors is overloaded. | ||||||||||
| boolean | 
        isPitchAtStop()
        
        true if the gimbal's pitch value is at its limit. | ||||||||||
| boolean | 
        isRollAtStop()
        
        true if the gimbal's roll value is at its limit. | ||||||||||
| boolean | 
        isTestingBalance()
        
        true if the gimbal is testing payload balance. | ||||||||||
| boolean | 
        isYawAtStop()
        
        true if the gimbal's yaw value is at its limit. | ||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
The current gimbal attitude in degrees. Roll, pitch and yaw are 0 if the gimbal is level with the aircraft and points in the forward direction of the aircraft.
Returns the balance status of the gimbal. Only used by Osmo Mobile.
Gets current progress (percentage) for calibration.
Returns the pitch axis balance test result. Only used by Ronin MX. See enum GimbalBalanceTestPitchResult to find the corresponding explanation.
Returns the gimbal's roll fine-tune value. The range for the fine-tuned value is [-10, 10] degrees. If the fine-tune value is negative, the gimbal will be fine-tuned to the specified number of degrees in the counterclockwise direction.
Returns the roll axis balance test result. Only used by Ronin MX. See enum GimbalBalanceTestRollResult to find the corresponding explanation.
true if the attitude has been reset. If the gimbal is not in the
 original position, this value will return false.
true if the Gimbal is calibrating.
true if the gimbal calibration succeeded.
true if the mobile device is mounted on the gimbal. Only used by Osmo
  Mobile.
true if one of the gimbal motors is overloaded. Only used by Osmo Mobile.
true if the gimbal's pitch value is at its limit.
true if the gimbal's roll value is at its limit.
true if the gimbal is testing payload balance. Supported only by Ronin MX.
true if the gimbal's yaw value is at its limit.