public class

DJIGimbalState

extends Object
java.lang.Object
   ↳ dji.common.gimbal.DJIGimbalState

Class Overview

This class provides the current state of the gimbal.

Summary

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

Public Constructors

public 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

public DJIGimbalAttitude getAttitudeInDegrees ()

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.

public DJIGimbalLoadingBalanceStatus getBalanceState ()

Returns the balance status of the gimbal. Only used by Osmo Mobile.

public int getCalibrationProgress ()

Gets current progress (percentage) for calibration.

public DJIGimbalBalanceTestResult getPitchTestResult ()

Returns the pitch axis balance test result. Only used by Ronin MX. See enum GimbalBalanceTestPitchResult to find the corresponding explanation.

public float getRollFineTuneInDegrees ()

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.

public DJIGimbalBalanceTestResult getRollTestResult ()

Returns the roll axis balance test result. Only used by Ronin MX. See enum GimbalBalanceTestRollResult to find the corresponding explanation.

public DJIGimbalWorkMode getWorkMode ()

Returns the gimbal's current work mode.

public boolean isAttitudeReset ()

true if the attitude has been reset. If the gimbal is not in the original position, this value will return false.

public boolean isCalibrating ()

true if the Gimbal is calibrating.

public boolean isCalibrationSuccess ()

true if the gimbal calibration succeeded.

public boolean isMobileDeviceMounted ()

true if the mobile device is mounted on the gimbal. Only used by Osmo Mobile.

public boolean isMotorOverloaded ()

true if one of the gimbal motors is overloaded. Only used by Osmo Mobile.

public boolean isPitchAtStop ()

true if the gimbal's pitch value is at its limit.

public boolean isRollAtStop ()

true if the gimbal's roll value is at its limit.

public boolean isTestingBalance ()

true if the gimbal is testing payload balance. Supported only by Ronin MX.

public boolean isYawAtStop ()

true if the gimbal's yaw value is at its limit.