public class

DJIGimbal.DJIGimbalState

extends Object
java.lang.Object
   ↳ dji.sdk.Gimbal.DJIGimbal.DJIGimbalState

Class Overview

This class provides the current state of the gimbal.

Summary

Public Constructors
DJIGimbalState(DJIGimbal.DJIGimbalAttitude attitude, int rollFineTune, DJIGimbal.DJIGimbalWorkMode workMode, boolean isAttitudeReset, boolean isCalibrating, boolean isCalibrationSuccess, boolean isPitchReachMax, boolean isRollReachMax, boolean isYawReachMax, DJIGimbal.DJIGimbalBalanceTestResult pitchTestResult, DJIGimbal.DJIGimbalBalanceTestResult rollTestResult)
Public Methods
DJIGimbal.DJIGimbalAttitude getAttitudeInDegrees()
The current gimbal attitude in degrees.
DJIGimbal.DJIGimbalBalanceTestResult getPitchTestResult()
Returns the pitch axis balance test result.
float getRollFineTuneInDegrees()
Returns the gimbal's roll fine-tune value.
DJIGimbal.DJIGimbalBalanceTestResult getRollTestResult()
Returns the roll axis balance test result.
DJIGimbal.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 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 (DJIGimbal.DJIGimbalAttitude attitude, int rollFineTune, DJIGimbal.DJIGimbalWorkMode workMode, boolean isAttitudeReset, boolean isCalibrating, boolean isCalibrationSuccess, boolean isPitchReachMax, boolean isRollReachMax, boolean isYawReachMax, DJIGimbal.DJIGimbalBalanceTestResult pitchTestResult, DJIGimbal.DJIGimbalBalanceTestResult rollTestResult)

Public Methods

public DJIGimbal.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 DJIGimbal.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 DJIGimbal.DJIGimbalBalanceTestResult getRollTestResult ()

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

public DJIGimbal.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 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.